|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xbean.naming.context.AbstractContext org.apache.xbean.naming.context.AbstractFederatedContext org.apache.xbean.naming.context.WritableContext org.apache.geronimo.gjndi.KernelContextGBean
public class KernelContextGBean
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.xbean.naming.context.WritableContext |
---|
org.apache.xbean.naming.context.WritableContext.NestedWritableContext |
Field Summary | |
---|---|
static GBeanInfo |
GBEAN_INFO
|
Fields inherited from interface javax.naming.Context |
---|
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
Constructor Summary | |
---|---|
KernelContextGBean(String nameInNamespace,
AbstractNameQuery abstractNameQuery,
Kernel kernel)
|
Method Summary | |
---|---|
protected void |
addBinding(AbstractName abstractName)
Binds the specified gbean. |
protected Name |
createBindingName(AbstractName abstractName,
Object value)
Create a name under which we will bind the specified gbean with the specified value. |
protected Map<Name,Object> |
createBindings(AbstractName abstractName,
Object value)
|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
static GBeanInfo |
getGBeanInfo()
|
protected Object |
preprocessVaue(AbstractName abstractName,
Name name,
Object value)
Preprocess the value before it is bound. |
protected void |
removeBinding(AbstractName abstractName)
Unbinds the specified gbean. |
Methods inherited from class org.apache.xbean.naming.context.WritableContext |
---|
addBinding, addBinding, createNestedSubcontext, getDeepBinding, getWrapperBindings, removeBinding |
Methods inherited from class org.apache.xbean.naming.context.AbstractFederatedContext |
---|
addFederatedContext, faultLookup, getBinding, getBindings, getMasterContext, isNestedSubcontext |
Methods inherited from class org.apache.xbean.naming.context.AbstractContext |
---|
addBinding, addDeepBinding, addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, createSubcontextTree, destroySubcontext, destroySubcontext, getContextAccess, getEnvironment, getNameInNamespace, getNameInNamespace, getNameInNamespace, getNameParser, getNameParser, getNameParser, getParsedNameInNamespace, getSize, isEmpty, list, list, list, listBindings, listBindings, listBindings, lookup, lookup, lookup, lookupFinalContext, lookupLink, lookupLink, rebind, rebind, removeDeepBinding, removeDeepBinding, removeFromEnvironment, rename, rename, unbind, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public KernelContextGBean(String nameInNamespace, AbstractNameQuery abstractNameQuery, Kernel kernel) throws NamingException
NamingException
Method Detail |
---|
public void doStart()
GBeanLifecycle
doStart
in interface GBeanLifecycle
public void doStop()
GBeanLifecycle
doStop
in interface GBeanLifecycle
public void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
protected void addBinding(AbstractName abstractName) throws NamingException
abstractName
- the abstract name of the gbean to bind
NamingException
- if an error occurs during bindingprotected void removeBinding(AbstractName abstractName)
abstractName
- the abstract name of the gbean to unbindprotected Map<Name,Object> createBindings(AbstractName abstractName, Object value) throws NamingException
NamingException
protected Name createBindingName(AbstractName abstractName, Object value) throws NamingException
abstractName
- the abstract name of the gbean to bindvalue
- the gbean instance
NamingException
- should something go wrongprotected Object preprocessVaue(AbstractName abstractName, Name name, Object value) throws NamingException
abstractName
- the abstract name of the gbean to bindname
- the name under which the gbean will be boundvalue
- the gbean instance
NamingException
- should something go wrongpublic static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |