DynamicServiceExecutor
with a URL based
ServiceExtractor
instead.@Deprecated @Removal(version="3.11.0") public class LocalMarshallServiceStore extends MarshallFileServiceStore
Implementation of ServiceStore
which uses the local file system to store marshalled
Service
s.
In the adapter configuration file this class is aliased as local-marshall-service-store which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
LocalMarshallServiceStore()
Deprecated.
Creates a new instance.
|
LocalMarshallServiceStore(java.lang.String url,
java.lang.String prefix,
java.lang.String suffix,
java.lang.String defaultFilename)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseDirUrl()
Deprecated.
Returns the base directory of the store in the form of a file URL.
|
void |
setBaseDirUrl(java.lang.String s)
Deprecated.
Sets the base directory of the store in the form of a file URL.
|
protected Service |
unmarshal(java.lang.String s)
Deprecated.
Unmarshal the Service from the store.
|
void |
validate()
Deprecated.
Perform any validation that may be requireed on the store.
|
getDefaultFileName, getFileNamePrefix, getFileNameSuffix, obtain, setDefaultFileName, setFileNamePrefix, setFileNameSuffix
currentMarshaller, getMarshaller, setMarshaller
public LocalMarshallServiceStore() throws CoreException
Creates a new instance. Default is no fileNameSuffix
and no fileNamePrefix
. Default imp. class is
com.adaptris.core.ServiceList
.
No default baseDirUrl
is set. If it is not explicitly set, this class will look for marshalled classes in the
working directory. It is strongly recommended that baseDirUrl
is explicitly set.
CoreException
- wrapping any Exceptions which occurpublic LocalMarshallServiceStore(java.lang.String url, java.lang.String prefix, java.lang.String suffix, java.lang.String defaultFilename) throws CoreException
CoreException
public void validate() throws CoreException
ServiceStore
Perform any validation that may be requireed on the store.
CoreException
- if the store is invalidServiceStore.validate()
protected Service unmarshal(java.lang.String s) throws CoreException
MarshallFileServiceStore
unmarshal
in class MarshallFileServiceStore
s
- the name under which the service is stored.CoreException
- wrapping any underlying exceptions.public java.lang.String getBaseDirUrl()
Returns the base directory of the store in the form of a file URL.
public void setBaseDirUrl(java.lang.String s)
Sets the base directory of the store in the form of a file URL. E.g. file:////Users/adaptris/services/
. May not be
null or empty.
s
- the base directory of the store in the form of a file URL