org.apache.geronimo.gbean.runtime
Class AbstractGBeanReference
java.lang.Object
org.apache.geronimo.gbean.runtime.AbstractGBeanReference
- All Implemented Interfaces:
- GBeanReference
- Direct Known Subclasses:
- GBeanCollectionReference, GBeanSingleReference
public abstract class AbstractGBeanReference
- extends Object
- implements GBeanReference
Field Summary |
protected static boolean |
NO_PROXY
Should we proxy references. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_PROXY
protected static final boolean NO_PROXY
- Should we proxy references.
AbstractGBeanReference
public AbstractGBeanReference(GBeanInstance gbeanInstance,
GReferenceInfo referenceInfo,
Kernel kernel,
boolean hasTargets)
throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
getKernel
protected final Kernel getKernel()
getGBeanInstance
public final GBeanInstance getGBeanInstance()
getName
public final String getName()
- Specified by:
getName
in interface GBeanReference
getReferenceInfo
public final GReferenceInfo getReferenceInfo()
- Specified by:
getReferenceInfo
in interface GBeanReference
getReferenceType
public final Class getReferenceType()
- Specified by:
getReferenceType
in interface GBeanReference
getProxyType
public final Class getProxyType()
- Specified by:
getProxyType
in interface GBeanReference
getProxy
public final Object getProxy()
- Specified by:
getProxy
in interface GBeanReference
setProxy
protected final void setProxy(Object proxy)
isRunning
protected boolean isRunning(Kernel kernel,
AbstractName abstractName)
- Is the component in the Running state
- Parameters:
abstractName
- name of the component to check
- Returns:
- true if the component is running; false otherwise
getDescription
protected final String getDescription()
inject
public final void inject(Object target)
throws Exception
- Specified by:
inject
in interface GBeanReference
- Throws:
Exception
Copyright © 2006 Apache Software Foundation. All Rights Reserved.