org.apache.geronimo.naming.reference
Class ResourceReference
java.lang.Object
javax.naming.Reference
org.apache.geronimo.naming.reference.SimpleReference
org.apache.geronimo.naming.reference.SimpleAwareReference
org.apache.geronimo.naming.reference.ConfigurationAwareReference
org.apache.geronimo.naming.reference.ResourceReference
- All Implemented Interfaces:
- ClassLoaderAwareReference, Cloneable, KernelAwareReference, Serializable
- public class ResourceReference
- extends ConfigurationAwareReference
- Version:
- $Rev: 406864 $ $Date: 2006-05-16 09:36:42 +0200 (Tue, 16 May 2006) $
- See Also:
- Serialized Form
Constructor Summary |
ResourceReference(org.apache.geronimo.kernel.repository.Artifact configId,
org.apache.geronimo.gbean.AbstractNameQuery abstractNameQuery,
Class iface)
|
Methods inherited from class org.apache.geronimo.naming.reference.SimpleReference |
add, add, clear, clone, equals, get, get, getAll, getFactoryClassLocation, getFactoryClassName, hashCode, remove, size, toString |
ResourceReference
public ResourceReference(org.apache.geronimo.kernel.repository.Artifact configId,
org.apache.geronimo.gbean.AbstractNameQuery abstractNameQuery,
Class iface)
- Parameters:
configId
- the configId of the configuration that holds the reference, not the resource adapter.abstractNameQuery
- query for name of the resource adapter.iface
-
getClassName
public String getClassName()
- Description copied from class:
SimpleReference
- We will atleast return an Object. Subclasses may want to provide a more specific class.
- Overrides:
getClassName
in class SimpleReference
- Returns:
- "java.lang.Object"
getContent
public Object getContent()
throws NameNotFoundException
- Description copied from class:
SimpleReference
- Gets the actual referenced Object.
- Specified by:
getContent
in class SimpleReference
- Returns:
- the referenced object
- Throws:
NameNotFoundException
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.