org.apache.geronimo.gjndi.binding
Class ResourceBinding

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
                      extended by org.apache.geronimo.gjndi.binding.ResourceBinding
All Implemented Interfaces:
Serializable, Context, GBeanLifecycle, org.apache.xbean.naming.context.NestedContextFactory

public class ResourceBinding
extends GBeanFormatBinding

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
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from class org.apache.geronimo.gjndi.binding.GBeanFormatBinding
format, log, 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
ResourceBinding(String format, String namePattern, String nameInNamespace, AbstractNameQuery abstractNameQuery, Kernel kernel)
           
 
Method Summary
static GBeanInfo getGBeanInfo()
           
protected  Object preprocessVaue(AbstractName abstractName, Name name, Object value)
          Preprocess the value before it is bound.
 
Methods inherited from class org.apache.geronimo.gjndi.binding.GBeanFormatBinding
createBindingName
 
Methods inherited from class org.apache.geronimo.gjndi.KernelContextGBean
addBinding, createBindings, doFail, doStart, doStop, 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

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

ResourceBinding

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

preprocessVaue

protected Object preprocessVaue(AbstractName abstractName,
                                Name name,
                                Object value)
Preprocess the value before it is bound. This is usefult for wrapping values with reference objects. By default, this method simply return the value.

Overrides:
preprocessVaue in class KernelContextGBean
Parameters:
abstractName - the abstract name of the gbean to bind
value - the gbean instance
name - the name under which the gbean will be bound
Returns:
the value to bind or null if there was a problem

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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