Package io.joynr.jeeintegration
Class ServiceProviderDiscovery
- java.lang.Object
-
- io.joynr.jeeintegration.ServiceProviderDiscovery
-
public class ServiceProviderDiscovery extends Object
This class is responsible for finding all beans registered in theBeanManagerwhich are annotated withServiceProvider.
-
-
Constructor Summary
Constructors Constructor Description ServiceProviderDiscovery(javax.enterprise.inject.spi.BeanManager beanManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<javax.enterprise.inject.spi.Bean<?>>findServiceProviderBeans()Class<?>getProviderInterfaceFor(Class<?> businessInterface)Use this method to get the joynr provider interface for the given business interface.
-
-
-
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 aProvidedByannotation 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.
-
-