Package org.jboss.modcluster.config.impl
Class SystemPropertyJvmRouteFactory
- java.lang.Object
-
- org.jboss.modcluster.config.impl.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 Summary
Constructors Constructor Description SystemPropertyJvmRouteFactory(JvmRouteFactory factory)Creates a new SystemPropertyJvmRouteFactory using the default systemPROPERTY.SystemPropertyJvmRouteFactory(JvmRouteFactory factory, String property)Creates a new SystemPropertyJvmRouteFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateJvmRoute(Engine engine)Creates a unique jvm route for the specified engine.
-
-
-
Field Detail
-
PROPERTY
public static final String PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SystemPropertyJvmRouteFactory
public SystemPropertyJvmRouteFactory(JvmRouteFactory factory)
Creates a new SystemPropertyJvmRouteFactory using the default systemPROPERTY.- 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 routefactory- 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:JvmRouteFactoryCreates a unique jvm route for the specified engine.- Specified by:
createJvmRoutein interfaceJvmRouteFactory- Parameters:
engine- an engine- Returns:
- a jvm route
-
-