Class ServiceFromDataInputParameter
- java.lang.Object
-
- com.adaptris.core.services.dynamic.ServiceExtractorImpl
-
- com.adaptris.core.services.dynamic.ServiceFromDataInputParameter
-
- All Implemented Interfaces:
ComponentLifecycle
,ServiceExtractor
@ComponentProfile(summary="Extract the service to execute from a DataInputParameter", since="3.8.4") public class ServiceFromDataInputParameter extends ServiceExtractorImpl
Extract the service to execute based on the configuredDataInputParameter
Wraps
DataInputParameter<String>
so you can use any of those implementations as the source of your executable service.- See Also:
DynamicServiceExecutor
,ConstantDataInputParameter
,StringPayloadDataInputParameter
,MetadataDataInputParameter
In the adapter configuration file this class is aliased as dynamic-service-from-data-input which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.services.dynamic.ServiceExtractorImpl
log
-
-
Constructor Summary
Constructors Constructor Description ServiceFromDataInputParameter()
ServiceFromDataInputParameter(DataInputParameter<java.lang.String> input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataInputParameter<java.lang.String>
getInput()
java.io.InputStream
getInputStream(AdaptrisMessage m)
void
setInput(DataInputParameter<java.lang.String> input)
-
Methods inherited from class com.adaptris.core.services.dynamic.ServiceExtractorImpl
getService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
-
-
-
Constructor Detail
-
ServiceFromDataInputParameter
public ServiceFromDataInputParameter()
-
ServiceFromDataInputParameter
public ServiceFromDataInputParameter(DataInputParameter<java.lang.String> input)
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream(AdaptrisMessage m) throws java.lang.Exception
- Specified by:
getInputStream
in classServiceExtractorImpl
- Throws:
java.lang.Exception
-
getInput
public DataInputParameter<java.lang.String> getInput()
-
setInput
public void setInput(DataInputParameter<java.lang.String> input)
-
-