public abstract class AbstractFilterProviderAdapterFactoryBean extends AbstractFilterProviderFactoryBean
A base class for filter adapters that delegate the invocation of filter operation and
lifecycle methods to another class. The delegate invocation is done using FilterOperationDelegate.
Subclasses should implement three methods. The first, doGetInvokerLookup() provides a
map of operation per FilterOperationDelegateInvoker. The other two provide filter lifecycle methods doGetInitMethod() and doGetCloseMethod().
FilterOperationDelegate| Constructor and Description |
|---|
AbstractFilterProviderAdapterFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInvoker(Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> invokerLookup,
Method method,
int operationCode)
Helper method for basclasses that add an invoker to the lookup map.
|
protected abstract Method |
doGetCloseMethod()
Retruns the filter lifecycle close method delegate.
|
protected FilterProvider |
doGetFilterProvider()
|
protected abstract Method |
doGetInitMethod()
Retruns the filter lifecycle init method delegate.
|
protected abstract Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> |
doGetInvokerLookup()
Responsible for returning a lookup map of operation code to invoker.
|
afterPropertiesSet, getBeanName, getFilter, getFilterProvider, setActiveWhenBackup, setBeanName, setEnabled, setFilter, setPriority, setSecurityFilter, setShutdownSpaceOnInitFailurepublic AbstractFilterProviderAdapterFactoryBean()
protected FilterProvider doGetFilterProvider() throws IllegalArgumentException
Constructs a new FilterProvider using
FilterOperationDelegate as
the ISpaceFilter implementation.
Subclasses should provide the main Map of operation per FilterOperationDelegateInvoker which is used to initialize the FilterOperationDelegate.
doGetFilterProvider in class AbstractFilterProviderFactoryBeanIllegalArgumentExceptionprotected void addInvoker(Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> invokerLookup, Method method, int operationCode) throws IllegalArgumentException
IllegalArgumentExceptionprotected abstract Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> doGetInvokerLookup()
protected abstract Method doGetInitMethod()
null.protected abstract Method doGetCloseMethod()
null.Copyright © GigaSpaces.