Class SimpleReference
java.lang.Object
javax.naming.Reference
org.apache.xbean.naming.reference.SimpleReference
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
CachingReference
- Version:
- $Rev: 355877 $ $Date: 2005-12-10 18:48:27 -0800 (Sat, 10 Dec 2005) $
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSimply calls getContent() on the SimpleReference -
Field Summary
Fields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidfinal voidclear()clone()booleanfinal RefAddrget(int posn) final RefAddrfinal Enumeration<RefAddr>getAll()We will atleast return an Object.abstract ObjectGets the actual referenced Object.final Stringfinal StringIf the JNDI context does not understand simple references, this method will be called to obtain the class name of a factory.inthashCode()final Objectremove(int posn) final intsize()toString()
-
Constructor Details
-
SimpleReference
public SimpleReference()
-
-
Method Details
-
getContent
Gets the actual referenced Object.- Returns:
- the referenced object
- Throws:
NamingException- on error
-
getClassName
We will atleast return an Object. Subclasses may want to provide a more specific class.- Overrides:
getClassNamein classReference- Returns:
- "java.lang.Object"
-
getFactoryClassName
If the JNDI context does not understand simple references, this method will be called to obtain the class name of a factory. This factory in turn understands the simple reference. This style is much slower because JNDI will use reflection to load and create this class.- Overrides:
getFactoryClassNamein classReference- Returns:
- factory class name
-
getFactoryClassLocation
- Overrides:
getFactoryClassLocationin classReference
-
get
-
get
-
getAll
-
size
public final int size() -
add
-
add
-
remove
-
clear
public final void clear() -
equals
-
hashCode
public int hashCode() -
toString
-
clone
-