Package org.apache.naming.factory
Class ResourceLinkFactory
java.lang.Object
org.apache.naming.factory.ResourceLinkFactory
- All Implemented Interfaces:
- ObjectFactory
- Direct Known Subclasses:
- DataSourceLinkFactory
Object factory for resource links.
- Author:
- Remy Maucherat
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidderegisterGlobalResourceAccess(Context globalContext) static voidderegisterGlobalResourceAccess(Context globalContext, String localName) getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) Create a new DataSource instance.static voidregisterGlobalResourceAccess(Context globalContext, String localName, String globalName) static voidsetGlobalContext(Context newGlobalContext) Set the global context (note: can only be used once).
- 
Field Details- 
sm
 
- 
- 
Constructor Details- 
ResourceLinkFactorypublic ResourceLinkFactory()
 
- 
- 
Method Details- 
setGlobalContextSet the global context (note: can only be used once).- Parameters:
- newGlobalContext- new global context value
 
- 
registerGlobalResourceAccess
- 
deregisterGlobalResourceAccess
- 
deregisterGlobalResourceAccess
- 
getObjectInstancepublic Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws NamingExceptionCreate a new DataSource instance.- Specified by:
- getObjectInstancein interface- ObjectFactory
- Parameters:
- obj- The reference object describing the DataSource
- Throws:
- NamingException
 
 
-