|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.space.filter.AbstractFilterProviderFactoryBean org.openspaces.core.space.filter.AbstractFilterProviderAdapterFactoryBean
public abstract class AbstractFilterProviderAdapterFactoryBean
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 Summary | |
---|---|
AbstractFilterProviderAdapterFactoryBean()
|
Method Summary | |
---|---|
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 com.j_spaces.core.filters.FilterProvider |
doGetFilterProvider()
Constructs a new FilterProvider using
FilterOperationDelegate as the ISpaceFilter
implementation. |
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. |
Methods inherited from class org.openspaces.core.space.filter.AbstractFilterProviderFactoryBean |
---|
afterPropertiesSet, getBeanName, getFilter, getFilterProvider, setActiveWhenBackup, setBeanName, setEnabled, setFilter, setPriority, setSecurityFilter, setShutdownSpaceOnInitFailure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFilterProviderAdapterFactoryBean()
Method Detail |
---|
protected com.j_spaces.core.filters.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 AbstractFilterProviderFactoryBean
IllegalArgumentException
protected void addInvoker(Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> invokerLookup, Method method, int operationCode) throws IllegalArgumentException
IllegalArgumentException
protected abstract Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> doGetInvokerLookup()
protected abstract Method doGetInitMethod()
null
.
protected abstract Method doGetCloseMethod()
null
.
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |