Home » geronimo-2.2-source-release » org.apache.geronimo.gjndi » [javadoc | source]
org.apache.geronimo.gjndi
public class: KernelContextGBean [javadoc | source]
java.lang.Object
   org.apache.xbean.naming.context.WritableContext
      org.apache.geronimo.gjndi.KernelContextGBean

All Implemented Interfaces:
    GBeanLifecycle

Direct Known Subclasses:
    ResourceBinding, GlobalContextGBean, GBeanFormatBinding

Field Summary
public static final  GBeanInfo GBEAN_INFO     
Constructor:
 public KernelContextGBean(String nameInNamespace,
    AbstractNameQuery abstractNameQuery,
    Kernel kernel) throws NamingException 
Method from org.apache.geronimo.gjndi.KernelContextGBean Summary:
addBinding,   createBindingName,   createBindings,   doFail,   doStart,   doStop,   getGBeanInfo,   preprocessVaue,   removeBinding
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.gjndi.KernelContextGBean Detail:
 protected synchronized  void addBinding(AbstractName abstractName) throws NamingException 
    Binds the specified gbean. This method uses createBindingName and preprocessValue before binding the object.
 protected Name createBindingName(AbstractName abstractName,
    Object value) throws NamingException 
    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
 protected Map<Name, Object> createBindings(AbstractName abstractName,
    Object value) throws NamingException 
 public  void doFail() 
 public synchronized  void doStart() 
 public  void doStop() 
 public static GBeanInfo getGBeanInfo() 
 protected Object preprocessVaue(AbstractName abstractName,
    Name name,
    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.
 protected synchronized  void removeBinding(AbstractName abstractName) 
    Unbinds the specified gbean.