Class ServiceProviderDiscovery


  • public class ServiceProviderDiscovery
    extends Object
    This class is responsible for finding all beans registered in the BeanManager which are annotated with ServiceProvider.
    • Constructor Detail

      • ServiceProviderDiscovery

        @Inject
        public ServiceProviderDiscovery​(javax.enterprise.inject.spi.BeanManager beanManager)
    • Method Detail

      • findServiceProviderBeans

        public Set<javax.enterprise.inject.spi.Bean<?>> findServiceProviderBeans()
      • getProviderInterfaceFor

        public Class<?> getProviderInterfaceFor​(Class<?> businessInterface)
        Use this method to get the joynr provider interface for the given business interface. The business interface is mapped to its joynr provider, by expecting a ProvidedBy annotation is attached in the class hierarchy of the business interface. With this annotation, the provider is found by the ServiceProviderDiscovery.
        Parameters:
        businessInterface - the business interface for which we want to find the joynr provider interface.
        Returns:
        the provider interface, if found, or the interface passed in if not.