Package org.apache.naming
Class AbstractRef
java.lang.Object
javax.naming.Reference
org.apache.naming.AbstractRef
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
EjbRef,HandlerRef,LookupRef,ResourceEnvRef,ResourceLinkRef,ResourceRef,ServiceRef,TransactionRef
Abstract base class for
Reference implementations used by the naming
context. Provides a default factory class name lookup mechanism.- See Also:
-
Field Summary
Fields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRef(String className) Constructs a newAbstractRefwith the specified class name.AbstractRef(String className, String factory, String factoryLocation) Constructs a newAbstractRefwith the specified class name, factory class name, and factory location. -
Method Summary
-
Constructor Details
-
AbstractRef
Constructs a newAbstractRefwith the specified class name.- Parameters:
className- The non-null class name
-
AbstractRef
Constructs a newAbstractRefwith the specified class name, factory class name, and factory location.- Parameters:
className- The non-null class namefactory- The factory class namefactoryLocation- The factory location
-
-
Method Details
-
getFactoryClassName
- Overrides:
getFactoryClassNamein classReference
-
getDefaultFactoryClassName
Returns the default factory class name.- Returns:
- the default factory class name
-
toString
-