Class ServiceFromCache
java.lang.Object
com.adaptris.core.services.dynamic.ServiceExtractorImpl
com.adaptris.core.services.dynamic.ExtractorWithConnection
com.adaptris.core.services.dynamic.ServiceFromCache
- All Implemented Interfaces:
ComponentLifecycle
,ServiceExtractor
@ComponentProfile(summary="Extract the service to execute from a cache",
recommended=CacheConnection.class,
since="3.8.4")
public class ServiceFromCache
extends ExtractorWithConnection
Extract the service to execute from a cache
This allows you to retrieve a service (stored as a String) from a configured Cache
instance; it supports the expression syntax so you can build up the key for the cache from
metadata or similar. It will not remove the cache entry.
The alternative to this would be to use RetrieveFromCacheService
and subsequently a
ServiceFromDataInputParameter
(from metadata). How the dynamic services are inserted into
the cache is up to you.
- See Also:
In the adapter configuration file this class is aliased as dynamic-service-from-cache 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
-
Method Summary
Methods inherited from class com.adaptris.core.services.dynamic.ExtractorWithConnection
close, getConnection, init, setConnection, start, stop, withConnection
Methods inherited from class com.adaptris.core.services.dynamic.ServiceExtractorImpl
getService
-
Constructor Details
-
ServiceFromCache
public ServiceFromCache()
-
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in classServiceExtractorImpl
- Throws:
Exception
-
getKey
-
setKey
-
withKey
-