Package org.jboss.as.naming.context
Class ModularReference
java.lang.Object
javax.naming.Reference
org.jboss.as.naming.context.ModularReference
- All Implemented Interfaces:
Serializable,Cloneable
Reference implementation that captures a module name and allows object factories to be loaded and created from
modules.
- Author:
- John Bailey
- See Also:
-
Field Summary
Fields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className -
Constructor Summary
ConstructorsConstructorDescriptionModularReference(String className, String factory, org.jboss.modules.ModuleIdentifier moduleIdentifier) Create an instance.ModularReference(String className, RefAddr addr, String factory, org.jboss.modules.ModuleIdentifier moduleIdentifier) Create an instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModularReferenceCreate a ModuleReference from a target type and factory class.static ModularReferenceCreate a ModuleReference from a target type, reference address and factory class.static ModularReferenceCreate a ModuleReference from a target class name and factory class.static ModularReferenceCreate a ModuleReference from a target class name, reference address and factory class.org.jboss.modules.ModuleIdentifierGet the module name to load the factory class from.
-
Constructor Details
-
ModularReference
public ModularReference(String className, String factory, org.jboss.modules.ModuleIdentifier moduleIdentifier) Create an instance.- Parameters:
className- The class name of the target object typefactory- The object factory class namemoduleIdentifier- The module name to load the factory class
-
ModularReference
public ModularReference(String className, RefAddr addr, String factory, org.jboss.modules.ModuleIdentifier moduleIdentifier) Create an instance.- Parameters:
className- The class name of the target object typeaddr- The address of the objectfactory- The object factory class namemoduleIdentifier- The module name to load the factory class
-
-
Method Details
-
create
Create a ModuleReference from a target type and factory class.- Parameters:
type- The class type for the referencefactoryClass- The factory class- Returns:
- A ModularReference
-
create
Create a ModuleReference from a target class name and factory class.- Parameters:
className- The class name for the referencefactoryClass- The factory class- Returns:
- A ModularReference
-
create
Create a ModuleReference from a target type, reference address and factory class.- Parameters:
type- The class type for the referenceaddr- The address of the objectfactoryClass- The factory class- Returns:
- A ModularReference
-
create
Create a ModuleReference from a target class name, reference address and factory class.- Parameters:
className- The class name for the referenceaddr- The address of the objectfactoryClass- The factory class- Returns:
- A ModularReference
-
getModuleIdentifier
public org.jboss.modules.ModuleIdentifier getModuleIdentifier()Get the module name to load the factory class from.- Returns:
- The module name
-