| org.apache.geronimo.gjndi.KernelContextGBean
All known Subclasses: org.apache.geronimo.gjndi.binding.GBeanFormatBinding, org.apache.geronimo.gjndi.GlobalContextGBean,
KernelContextGBean | public class KernelContextGBean extends WritableContext implements GBeanLifecycle(Code) | | version: $Rev$ $Date$ |
Field Summary | |
final public static GBeanInfo | GBEAN_INFO |
Constructor Summary | |
public | KernelContextGBean(String nameInNamespace, AbstractNameQuery abstractNameQuery, Kernel kernel) |
GBEAN_INFO | final public static GBeanInfo GBEAN_INFO(Code) | | |
KernelContextGBean | public KernelContextGBean(String nameInNamespace, AbstractNameQuery abstractNameQuery, Kernel kernel) throws NamingException(Code) | | |
addBinding | protected synchronized void addBinding(AbstractName abstractName) throws NamingException(Code) | | 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 |
createBindingName | protected Name createBindingName(AbstractName abstractName, Object value) throws NamingException(Code) | | Create a name under which we will bind the specified gbean with the specified value.
By default, this method simply returns the "name" element of the abstract name
Parameters: abstractName - the abstract name of the gbean to bind Parameters: value - the gbean instance the name under which the gbean should be bound throws: javax.naming.NamingException - should something go wrong |
doFail | public void doFail()(Code) | | |
doStart | public synchronized void doStart()(Code) | | |
doStop | public void doStop()(Code) | | |
getGBeanInfo | public static GBeanInfo getGBeanInfo()(Code) | | |
preprocessVaue | protected Object preprocessVaue(AbstractName abstractName, Name name, Object value) throws NamingException(Code) | | 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 bind Parameters: name - the name under which the gbean will be bound Parameters: value - the gbean instance the value to bind throws: javax.naming.NamingException - should something go wrong |
removeBinding | protected synchronized void removeBinding(AbstractName abstractName)(Code) | | Unbinds the specified gbean.
Parameters: abstractName - the abstract name of the gbean to unbind |
|
|