T
- the I/O provider typepublic abstract class AbstractIOAdvisor<T extends IOProvider> extends Object implements IOAdvisor<T>, ServiceProvider
IOAdvisor
base implementationConstructor and Description |
---|
AbstractIOAdvisor() |
Modifier and Type | Method and Description |
---|---|
<X> X |
getService(Class<X> serviceInterface)
Get the service of the given type if available.
|
void |
handleResults(T provider)
Process the results after the execution.
|
void |
prepareProvider(T provider)
Prepare the I/O provider when it is created.
|
void |
setServiceProvider(ServiceProvider serviceProvider)
Set the service provider through which the advisor can access services in
the current context.
|
void |
updateConfiguration(T provider)
Update the provider configuration directly before the execution.
|
public void setServiceProvider(ServiceProvider serviceProvider)
IOAdvisor
IOAdvisor.prepareProvider(IOProvider)
,
IOAdvisor.updateConfiguration(IOProvider)
or
IOAdvisor.handleResults(IOProvider)
is calledsetServiceProvider
in interface IOAdvisor<T extends IOProvider>
serviceProvider
- the service providerpublic <X> X getService(Class<X> serviceInterface)
ServiceProvider
getService
in interface ServiceProvider
serviceInterface
- the service interface or typenull
if no such service existspublic void prepareProvider(T provider)
IOAdvisor
prepareProvider
in interface IOAdvisor<T extends IOProvider>
provider
- the I/O providerIOAdvisor.prepareProvider(IOProvider)
public void updateConfiguration(T provider)
IOAdvisor
updateConfiguration
in interface IOAdvisor<T extends IOProvider>
provider
- the I/O providerIOAdvisor.updateConfiguration(IOProvider)
public void handleResults(T provider)
IOAdvisor
handleResults
in interface IOAdvisor<T extends IOProvider>
provider
- the I/O providerIOAdvisor.handleResults(IOProvider)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a