Interface JoynrRuntimeFactory

  • All Known Implementing Classes:
    DefaultJoynrRuntimeFactory

    public interface JoynrRuntimeFactory
    Used by the JEE integration bean in order to obtain the joynr application to use. This can principally be a new instance every time, but a singleton probably makes more sense.
    See Also:
    JoynrIntegrationBean
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      JoynrRuntime create​(Set<Class<?>> providerInterfaceClasses)
      Call this method in order to create or obtain an instance of the joynr application this factory provides.
      com.google.inject.Injector getInjector()
      Provides the guice injector to be used by the joynr runtime factory
      String getLocalDomain()
      Provides the name of the local domain with which all providers will be registered.
    • Method Detail

      • create

        JoynrRuntime create​(Set<Class<?>> providerInterfaceClasses)
        Call this method in order to create or obtain an instance of the joynr application this factory provides. The returned joynr application should be initialised, but not yet running.
        Parameters:
        providerInterfaceClasses - the set of provider interface classes which will be provisioned for the joynr runtime. These are required in order to set up the access control entries during startup.
        Returns:
        the instance of the joynr application this factory provides.
      • getLocalDomain

        String getLocalDomain()
        Provides the name of the local domain with which all providers will be registered.
        Returns:
        the local domain name with which providers are registered.
      • getInjector

        com.google.inject.Injector getInjector()
        Provides the guice injector to be used by the joynr runtime factory
        Returns:
        the guice intector to be used by the joynr runtime factory