public class InternalAccessAdapter extends java.lang.Object implements IInternalAccess
| Modifier and Type | Field and Description |
|---|---|
protected IInternalAccess |
access
The delegate access.
|
| Constructor and Description |
|---|
InternalAccessAdapter(IInternalAccess access)
Create a new adapter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getArgument(java.lang.String name)
Deprecated.
From 3.0. Use getComponentFeature(IArgumentsResultsFeature.class).getArguments()
Get an argument value per name.
|
IFuture<IComponentIdentifier[]> |
getChildren(java.lang.String type)
Get the children (if any) component identifiers.
|
java.lang.ClassLoader |
getClassLoader()
Get the class loader of the component.
|
IComponentDescription |
getComponentDescription()
Get the component description.
|
<T> T |
getComponentFeature(java.lang.Class<? extends T> type)
Get a feature of the component.
|
<T> T |
getComponentFeature0(java.lang.Class<? extends T> type)
Get a feature of the component.
|
IComponentIdentifier |
getComponentIdentifier()
Get the id of the component.
|
java.lang.String |
getConfiguration()
Get the configuration.
|
java.lang.Exception |
getException()
Get the exception, if any.
|
IExternalAccess |
getExternalAccess()
Get the external access.
|
IValueFetcher |
getFetcher()
Get the fetcher.
|
IInternalAccess |
getInternalAccess()
Deprecated.
From version 3.0 - replaced with internal access.
Get the internal access.
|
IInternalAccess |
getInterpreter()
Deprecated.
From 3.0. Use internal access.
|
java.util.logging.Logger |
getLogger()
Get the logger.
|
IModelInfo |
getModel()
Get the model of the component.
|
IParameterGuesser |
getParameterGuesser()
Get the parameter guesser.
|
<T> IFuture<T> |
getRequiredService(java.lang.String name)
Deprecated.
From version 3.0 - Use getComponentFeature(IRequiredServicesFeatures.class).getRequiredService()
Get a required service of a given name.
|
IInternalAccess |
getServiceContainer()
Deprecated.
From version 3.0 - replaced with internal access.
Get the service provider.
|
IInternalAccess |
getServiceProvider()
Deprecated.
From version 3.0 - replaced with internal access.
Get the service provider.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
killComponent()
Kill the component.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
killComponent(java.lang.Exception e)
Kill the component.
|
<T> IFuture<T> |
scheduleStep(IComponentStep<T> step)
Deprecated.
From version 3.0 - replaced with getComponentFeature(IExecutionFeature.class).scheduleStep()
Execute a component step.
|
<T> IFuture<T> |
waitForDelay(long delay,
IComponentStep<T> step)
Deprecated.
From version 3.0 - replaced with getComponentFeature(IExecutionFeature.class).waitForDelay()
Wait for some time and execute a component step afterwards.
|
protected IInternalAccess access
public InternalAccessAdapter(IInternalAccess access)
public java.lang.Object getArgument(java.lang.String name)
getArgument in interface IInternalAccessname - The argument name.public IInternalAccess getInterpreter()
getInterpreter in interface IInternalAccesspublic IInternalAccess getServiceContainer()
getServiceContainer in interface IInternalAccesspublic IInternalAccess getServiceProvider()
getServiceProvider in interface IInternalAccesspublic IInternalAccess getInternalAccess()
getInternalAccess in interface IInternalAccesspublic <T> IFuture<T> getRequiredService(java.lang.String name)
getRequiredService in interface IInternalAccessname - The service name.public <T> IFuture<T> scheduleStep(IComponentStep<T> step)
scheduleStep in interface IInternalAccesspublic <T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step)
waitForDelay in interface IInternalAccesspublic IModelInfo getModel()
getModel in interface IInternalAccesspublic java.lang.String getConfiguration()
getConfiguration in interface IInternalAccesspublic IComponentIdentifier getComponentIdentifier()
getComponentIdentifier in interface IInternalAccesspublic <T> T getComponentFeature(java.lang.Class<? extends T> type)
getComponentFeature in interface IInternalAccessfeature - The type of the feature.public <T> T getComponentFeature0(java.lang.Class<? extends T> type)
getComponentFeature0 in interface IInternalAccessfeature - The type of the feature.public IComponentDescription getComponentDescription()
getComponentDescription in interface IInternalAccesspublic IFuture<java.util.Map<java.lang.String,java.lang.Object>> killComponent()
killComponent in interface IInternalAccesspublic IFuture<java.util.Map<java.lang.String,java.lang.Object>> killComponent(java.lang.Exception e)
killComponent in interface IInternalAccesse - The failure reason, if any.public IExternalAccess getExternalAccess()
getExternalAccess in interface IInternalAccesspublic java.util.logging.Logger getLogger()
getLogger in interface IInternalAccesspublic IValueFetcher getFetcher()
getFetcher in interface IInternalAccesspublic IParameterGuesser getParameterGuesser()
getParameterGuesser in interface IInternalAccesspublic java.lang.ClassLoader getClassLoader()
getClassLoader in interface IInternalAccesspublic IFuture<IComponentIdentifier[]> getChildren(java.lang.String type)
getChildren in interface IInternalAccesspublic java.lang.Exception getException()
getException in interface IInternalAccess