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 -
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.Get the module name to load the factory class from.
-
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
-
getModuleName
Get the module name to load the factory class from.- Returns:
- The module name
-