Class DefaultSpringAccessor

  • All Implemented Interfaces:
    SpringAccessor

    public class DefaultSpringAccessor
    extends Object
    implements SpringAccessor
    Author:
    Eugene Petrenko Created: 10.02.2009 19:04:51
    • Constructor Detail

      • DefaultSpringAccessor

        public DefaultSpringAccessor​(@NotNull
                                     org.springframework.context.ApplicationContext context)
      • DefaultSpringAccessor

        public DefaultSpringAccessor​(@NotNull
                                     org.springframework.context.ApplicationContext context,
                                     @NotNull
                                     SpringBeansFilter filter)
    • Method Detail

      • getSpringBeansOfType

        @NotNull
        public <T> Collection<T> getSpringBeansOfType​(@NotNull
                                                      Class<T> extensionClass,
                                                      boolean autowireCandidatesOnly)
        Description copied from interface: SpringAccessor
        Returns spring beans of the specified type.
        Specified by:
        getSpringBeansOfType in interface SpringAccessor
        Type Parameters:
        T - see extensionClass
        Parameters:
        extensionClass - the type of a bean to return
        autowireCandidatesOnly - if true then beans marked with autowire-candidate="false" are not returned
        Returns:
        see above
      • getBeanNames

        @NotNull
        protected <T> String[] getBeanNames​(@NotNull
                                            Class<T> extensionClass)