Package io.joynr.jeeintegration
Class JoynrIntegrationBean
- java.lang.Object
-
- io.joynr.jeeintegration.JoynrIntegrationBean
-
public class JoynrIntegrationBean extends Object
Singleton EJB which will create and keep the Joynr runtime and also shut it down when the app server shuts down as well as scan the system for all CDI beans present which are annotated withServiceProviderand register those as joynr providers with the joynr runtime.
-
-
Constructor Summary
Constructors Constructor Description JoynrIntegrationBean()JoynrIntegrationBean(javax.enterprise.inject.spi.BeanManager beanManager, JoynrRuntimeFactory joynrRuntimeFactory, ServiceProviderDiscovery serviceProviderDiscovery, CallbackHandlerDiscovery callbackHandlerDiscovery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()com.google.inject.InjectorgetJoynrInjector()Can be used to get access to the Guice Injector used in the joynr application / runtime.JoynrRuntimegetRuntime()voidinitialise()voidsubscribeToSharedSubscriptionsTopic()
-
-
-
Constructor Detail
-
JoynrIntegrationBean
public JoynrIntegrationBean()
-
JoynrIntegrationBean
@Inject public JoynrIntegrationBean(javax.enterprise.inject.spi.BeanManager beanManager, JoynrRuntimeFactory joynrRuntimeFactory, ServiceProviderDiscovery serviceProviderDiscovery, CallbackHandlerDiscovery callbackHandlerDiscovery)
-
-
Method Detail
-
initialise
@PostConstruct public void initialise()
-
subscribeToSharedSubscriptionsTopic
public void subscribeToSharedSubscriptionsTopic()
-
destroy
@PreDestroy public void destroy()
-
getJoynrInjector
public com.google.inject.Injector getJoynrInjector()
Can be used to get access to the Guice Injector used in the joynr application / runtime.- Returns:
- the Guice Injector used by the joynr application if the application has already been
started, ornullif not.
-
getRuntime
public JoynrRuntime getRuntime()
-
-