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 IInternalAccess
name
- The argument name.public IInternalAccess getInterpreter()
getInterpreter
in interface IInternalAccess
public IInternalAccess getServiceContainer()
getServiceContainer
in interface IInternalAccess
public IInternalAccess getServiceProvider()
getServiceProvider
in interface IInternalAccess
public IInternalAccess getInternalAccess()
getInternalAccess
in interface IInternalAccess
public <T> IFuture<T> getRequiredService(java.lang.String name)
getRequiredService
in interface IInternalAccess
name
- The service name.public <T> IFuture<T> scheduleStep(IComponentStep<T> step)
scheduleStep
in interface IInternalAccess
public <T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step)
waitForDelay
in interface IInternalAccess
public IModelInfo getModel()
getModel
in interface IInternalAccess
public java.lang.String getConfiguration()
getConfiguration
in interface IInternalAccess
public IComponentIdentifier getComponentIdentifier()
getComponentIdentifier
in interface IInternalAccess
public <T> T getComponentFeature(java.lang.Class<? extends T> type)
getComponentFeature
in interface IInternalAccess
feature
- The type of the feature.public <T> T getComponentFeature0(java.lang.Class<? extends T> type)
getComponentFeature0
in interface IInternalAccess
feature
- The type of the feature.public IComponentDescription getComponentDescription()
getComponentDescription
in interface IInternalAccess
public IFuture<java.util.Map<java.lang.String,java.lang.Object>> killComponent()
killComponent
in interface IInternalAccess
public IFuture<java.util.Map<java.lang.String,java.lang.Object>> killComponent(java.lang.Exception e)
killComponent
in interface IInternalAccess
e
- The failure reason, if any.public IExternalAccess getExternalAccess()
getExternalAccess
in interface IInternalAccess
public java.util.logging.Logger getLogger()
getLogger
in interface IInternalAccess
public IValueFetcher getFetcher()
getFetcher
in interface IInternalAccess
public IParameterGuesser getParameterGuesser()
getParameterGuesser
in interface IInternalAccess
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface IInternalAccess
public IFuture<IComponentIdentifier[]> getChildren(java.lang.String type)
getChildren
in interface IInternalAccess
public java.lang.Exception getException()
getException
in interface IInternalAccess