public class JndiContextManagedObjectSource extends AbstractManagedObjectSource<None,None>
ManagedObjectSource
to provide a JNDI Context
.AbstractAsyncManagedObjectSource.DependencyLabeller, AbstractAsyncManagedObjectSource.Labeller, AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_SUB_CONTEXT_NAME
Property specifying the sub
Context . |
static String |
PROPERTY_VALIDATE
Validating the
Context may only work within the appropriate
environment. |
Constructor and Description |
---|
JndiContextManagedObjectSource() |
Modifier and Type | Method and Description |
---|---|
protected ManagedObject |
getManagedObject()
Synchronously obtains the
ManagedObject . |
protected void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,None> context)
Overridden to load meta-data.
|
protected void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.
|
sourceManagedObject
getMetaData, getSpecification, init, start, stop
public static final String PROPERTY_SUB_CONTEXT_NAME
Context
. Providing this property is
optional.public static final String PROPERTY_VALIDATE
Validating the Context
may only work within the appropriate
environment.
For example the schema java
(for java:comp/env
)
is typically only available when executing within an Application Server.
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
AbstractAsyncManagedObjectSource
loadSpecification
in class AbstractAsyncManagedObjectSource<None,None>
context
- Specifications.protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,None> context) throws Exception
AbstractAsyncManagedObjectSource
loadMetaData
in class AbstractAsyncManagedObjectSource<None,None>
context
- Meta-data.Exception
- If fails to load the meta-data.protected ManagedObject getManagedObject() throws Exception
AbstractManagedObjectSource
ManagedObject
.getManagedObject
in class AbstractManagedObjectSource<None,None>
ManagedObject
.Exception
Copyright © 2005–2016. All rights reserved.