org.apache.geronimo.gjndi.binding
Class GBeanFormatBinding

java.lang.Object
  extended by org.apache.xbean.naming.context.AbstractContext
      extended by org.apache.xbean.naming.context.AbstractFederatedContext
          extended by org.apache.xbean.naming.context.WritableContext
              extended by org.apache.geronimo.gjndi.KernelContextGBean
                  extended by org.apache.geronimo.gjndi.binding.GBeanFormatBinding
All Implemented Interfaces:
Serializable, Context, GBeanLifecycle, org.apache.xbean.naming.context.NestedContextFactory
Direct Known Subclasses:
ResourceBinding

public class GBeanFormatBinding
extends KernelContextGBean

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.xbean.naming.context.WritableContext
org.apache.xbean.naming.context.WritableContext.NestedWritableContext
 
Field Summary
protected  String format
           
static GBeanInfo GBEAN_INFO
           
protected static org.apache.commons.logging.Log log
           
protected  Pattern namePattern
           
 
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
GBeanFormatBinding(String format, String namePattern, String nameInNamespace, AbstractNameQuery abstractNameQuery, Kernel kernel)
           
 
Method Summary
protected  Name createBindingName(AbstractName abstractName, Object value)
          Create a name under which we will bind the specified gbean with the specified value.
static GBeanInfo getGBeanInfo()
           
 
Methods inherited from class org.apache.geronimo.gjndi.KernelContextGBean
addBinding, createBindings, doFail, doStart, doStop, preprocessVaue, removeBinding
 
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

log

protected static final org.apache.commons.logging.Log log

format

protected final String format

namePattern

protected final Pattern namePattern

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

GBeanFormatBinding

public GBeanFormatBinding(String format,
                          String namePattern,
                          String nameInNamespace,
                          AbstractNameQuery abstractNameQuery,
                          Kernel kernel)
                   throws NamingException
Throws:
NamingException
Method Detail

createBindingName

protected Name createBindingName(AbstractName abstractName,
                                 Object value)
                          throws NamingException
Description copied from class: KernelContextGBean
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

Overrides:
createBindingName in class KernelContextGBean
Parameters:
abstractName - the abstract name of the gbean to bind
value - the gbean instance
Returns:
the name under which the gbean should be bound
Throws:
NamingException - should something go wrong

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.