public class ServletServerManagedObjectSource extends AbstractManagedObjectSource<ServletServerManagedObjectSource.Dependencies,None> implements Logger
ManagedObjectSource
for a ServletServer
.Modifier and Type | Class and Description |
---|---|
static class |
ServletServerManagedObjectSource.Dependencies
Dependencies.
|
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_CLASS_PATH_PREFIX
Property name to specify the class path prefix for locating resources.
|
Constructor and Description |
---|
ServletServerManagedObjectSource() |
Modifier and Type | Method and Description |
---|---|
protected ManagedObject |
getManagedObject()
Synchronously obtains the
ManagedObject . |
protected void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<ServletServerManagedObjectSource.Dependencies,None> context)
Overridden to load meta-data.
|
protected void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.
|
void |
log(String message)
Logs the message.
|
void |
log(String message,
Throwable failure)
Logs the message.
|
sourceManagedObject
getMetaData, getSpecification, init, start, stop
public static final String PROPERTY_CLASS_PATH_PREFIX
public void log(String message, Throwable failure)
Logger
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
AbstractAsyncManagedObjectSource
loadSpecification
in class AbstractAsyncManagedObjectSource<ServletServerManagedObjectSource.Dependencies,None>
context
- Specifications.protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<ServletServerManagedObjectSource.Dependencies,None> context) throws Exception
AbstractAsyncManagedObjectSource
loadMetaData
in class AbstractAsyncManagedObjectSource<ServletServerManagedObjectSource.Dependencies,None>
context
- Meta-data.Exception
- If fails to load the meta-data.protected ManagedObject getManagedObject() throws Throwable
AbstractManagedObjectSource
ManagedObject
.getManagedObject
in class AbstractManagedObjectSource<ServletServerManagedObjectSource.Dependencies,None>
ManagedObject
.Throwable
- If fails to obtain the ManagedObject
.Copyright © 2005–2016. All rights reserved.