public class CmisServiceWrapperManager extends Object
Constructor and Description |
---|
CmisServiceWrapperManager()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addInnerWrapper(Class<? extends AbstractCmisServiceWrapper> wrapperClass,
Object... params)
Adds an inner-most (called last) wrapper.
|
void |
addOuterWrapper(Class<? extends AbstractCmisServiceWrapper> wrapperClass,
Object... params)
Adds an outer-most (called first) wrapper.
|
void |
addWrappersFromServiceFactoryParameters(Map<String,String> parameters)
Gets wrapper settings from the service factory parameters and adds them
to the wrappers.
|
void |
removeInnerWrapper()
Removes the inner-most wrapper.
|
void |
removeOuterWrapper()
Removes the outer-most wrapper.
|
String |
toString() |
CmisService |
wrap(CmisService service)
Wraps a service with all configured wrappers.
|
public void addOuterWrapper(Class<? extends AbstractCmisServiceWrapper> wrapperClass, Object... params)
wrapperClass
- the wrapper classparams
- wrapper parameterspublic void addInnerWrapper(Class<? extends AbstractCmisServiceWrapper> wrapperClass, Object... params)
wrapperClass
- the wrapper classparams
- wrapper parameterspublic void addWrappersFromServiceFactoryParameters(Map<String,String> parameters)
The factory parameters properties file should look like this:
servicewrapper.1=com.example.my.SimpleWrapper servicewrapper.2=com.example.my.AdvancedWrapper,1,cmis:documents servicewrapper.3=com.example.my.DebuggingWrapper,testRepositoryIdSyntax:
servicewrapper.<position>=<classname>[,parameter1[,parameter2[...]]]
parameters
- service factory parameterspublic void removeOuterWrapper()
public void removeInnerWrapper()
public CmisService wrap(CmisService service)
service
- the CMIS service objectCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.