org.apache.geronimo.gbean.runtime
Class AbstractGBeanReference

java.lang.Object
  extended by 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.
 
Constructor Summary
AbstractGBeanReference(GBeanInstance gbeanInstance, GReferenceInfo referenceInfo, Kernel kernel, boolean hasTargets)
           
 
Method Summary
protected  String getDescription()
           
 GBeanInstance getGBeanInstance()
           
protected  Kernel getKernel()
           
 String getName()
           
 Object getProxy()
           
 Class getProxyType()
           
 GReferenceInfo getReferenceInfo()
           
 Class getReferenceType()
           
 void inject(Object target)
           
protected  boolean isRunning(Kernel kernel, AbstractName abstractName)
          Is the component in the Running state
protected  void setProxy(Object proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.gbean.runtime.GBeanReference
offline, online, start, stop
 

Field Detail

NO_PROXY

protected static final boolean NO_PROXY
Should we proxy references.

Constructor Detail

AbstractGBeanReference

public AbstractGBeanReference(GBeanInstance gbeanInstance,
                              GReferenceInfo referenceInfo,
                              Kernel kernel,
                              boolean hasTargets)
                       throws InvalidConfigurationException
Throws:
InvalidConfigurationException
Method Detail

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 © 2003-2007 Apache Software Foundation. All Rights Reserved.