Class ServiceLocatorImpl

    • Constructor Detail

      • ServiceLocatorImpl

        public ServiceLocatorImpl()
    • Method Detail

      • getSpringBeansOfType

        protected final <T> Collection<T> getSpringBeansOfType​(@NotNull
                                                               Class<T> extensionClass,
                                                               boolean autowireCandidatesOnly)
      • setSpringAccessor

        @Autowired
        public void setSpringAccessor​(@NotNull
                                      SpringAccessor springAccessor)
      • getSingletonService

        @NotNull
        public <T> T getSingletonService​(@NotNull
                                         Class<T> serviceClass)
        Description copied from interface: ServiceLocator
        Searches for singleton service of specified type
        Specified by:
        getSingletonService in interface ServiceLocator
        Parameters:
        serviceClass - type of the service
        Returns:
        found service, never null
      • findSingletonService

        @Nullable
        public <T> T findSingletonService​(@NotNull
                                          Class<T> serviceClass)
        Description copied from interface: ServiceLocator
        Searches for singleton service of specified type
        Specified by:
        findSingletonService in interface ServiceLocator
        Parameters:
        serviceClass - type of the service
        Returns:
        found service or null if there's no such service
      • getServices

        @NotNull
        public <T> Collection<T> getServices​(@NotNull
                                             Class<T> serviceClass)
        Description copied from interface: ServiceLocator
        Searches for all bean instances of type
        Specified by:
        getServices in interface ServiceLocator
        Parameters:
        serviceClass - - type to search
        Returns:
        collection of classes that implements T