Class SystemPropertyJvmRouteFactory

  • All Implemented Interfaces:
    JvmRouteFactory

    public class SystemPropertyJvmRouteFactory
    extends Object
    implements JvmRouteFactory
    Decorates an existing jvm route factory, allowing system property override if defined.
    Author:
    Paul Ferraro
    • Constructor Detail

      • SystemPropertyJvmRouteFactory

        public SystemPropertyJvmRouteFactory​(JvmRouteFactory factory)
        Creates a new SystemPropertyJvmRouteFactory using the default system PROPERTY.
        Parameters:
        factory - the factory from which to generate a jvm route if the default system property is not defined.
      • SystemPropertyJvmRouteFactory

        public SystemPropertyJvmRouteFactory​(JvmRouteFactory factory,
                                             String property)
        Creates a new SystemPropertyJvmRouteFactory
        Parameters:
        property - the system property that defines this node's jvm route
        factory - the factory from which to generate a jvm route if the specified system property is not defined.
    • Method Detail

      • createJvmRoute

        public String createJvmRoute​(Engine engine)
        Description copied from interface: JvmRouteFactory
        Creates a unique jvm route for the specified engine.
        Specified by:
        createJvmRoute in interface JvmRouteFactory
        Parameters:
        engine - an engine
        Returns:
        a jvm route