org.apache.geronimo.gjndi.binding
Class GBeanBinding
java.lang.Object
org.apache.geronimo.gjndi.binding.GBeanBinding
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle
public class GBeanBinding
- extends Object
- implements org.apache.geronimo.gbean.GBeanLifecycle
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary |
GBeanBinding(Context context,
String name,
org.apache.geronimo.gbean.AbstractNameQuery abstractNameQuery,
org.apache.geronimo.kernel.Kernel kernel)
|
Method Summary |
protected void |
addBinding(org.apache.geronimo.gbean.AbstractName abstractName)
Binds the specified gbean. |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
protected Object |
preprocessVaue(org.apache.geronimo.gbean.AbstractName abstractName,
Object value)
Preprocess the value before it is bound. |
protected void |
removeBinding(org.apache.geronimo.gbean.AbstractName abstractName)
Unbinds the specified gbean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
GBeanBinding
public GBeanBinding(Context context,
String name,
org.apache.geronimo.gbean.AbstractNameQuery abstractNameQuery,
org.apache.geronimo.kernel.Kernel kernel)
doStart
public void doStart()
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
doStop
public void doStop()
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
addBinding
protected void addBinding(org.apache.geronimo.gbean.AbstractName abstractName)
throws NamingException
- Binds the specified gbean. This method uses createBindingName and preprocessValue before binding the object.
- Parameters:
abstractName
- the abstract name of the gbean to bind
- Throws:
NamingException
- if an error occurs during binding
removeBinding
protected void removeBinding(org.apache.geronimo.gbean.AbstractName abstractName)
- Unbinds the specified gbean.
- Parameters:
abstractName
- the abstract name of the gbean to unbind
preprocessVaue
protected Object preprocessVaue(org.apache.geronimo.gbean.AbstractName abstractName,
Object value)
throws NamingException
- Preprocess the value before it is bound. This is usefult for wrapping values with reference objects.
By default, this method simply return the value.
- Parameters:
abstractName
- the abstract name of the gbean to bindvalue
- the gbean instance
- Returns:
- the value to bind
- Throws:
NamingException
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2006 Apache Software Foundation. All Rights Reserved.