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 class
Simply 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 void
final void
final void
clear()
clone()
boolean
final RefAddr
get
(int posn) final RefAddr
final Enumeration
<RefAddr> getAll()
We will atleast return an Object.abstract Object
Gets the actual referenced Object.final String
final String
If the JNDI context does not understand simple references, this method will be called to obtain the class name of a factory.int
hashCode()
final Object
remove
(int posn) final int
size()
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:
getClassName
in 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:
getFactoryClassName
in classReference
- Returns:
- factory class name
-
getFactoryClassLocation
- Overrides:
getFactoryClassLocation
in classReference
-
get
-
get
-
getAll
-
size
public final int size() -
add
-
add
-
remove
-
clear
public final void clear() -
equals
-
hashCode
public int hashCode() -
toString
-
clone
-