public class AnnotationFilterFactoryBean extends AbstractFilterProviderAdapterFactoryBean
FilterProvider
factory that accepts
a Pojo filter with annotation markers as to which filter operation to listen to. The
available annotations are the different annotations found within this package with
either the Before
prefix or the After
prefix (for example:
BeforeWrite
and AfterWrite
). Filter lifecycle methods can be marked
using OnFilterInit
and OnFilterClose
annotations.
The annotated operation callback methods can different arguments. Please see
FilterOperationDelegateInvoker
for all
the different possibilities.
For a Pojo adapter that does not use annotations please see MethodFilterFactoryBean
.
FilterOperationDelegate
,
FilterProvider
,
ISpaceFilter
,
FilterOperationCodes
Constructor and Description |
---|
AnnotationFilterFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected Method |
doGetCloseMethod()
Returns the filter lifecycle method annotated with
OnFilterClose . |
protected Method |
doGetInitMethod()
Returns the filter lifecycle method annotated with
OnFilterInit . |
protected Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> |
doGetInvokerLookup()
Creates an operation code to filter invoker map based on the
AbstractFilterProviderFactoryBean.getFilter()
delegate and its annotated methods. |
addInvoker, doGetFilterProvider
afterPropertiesSet, getBeanName, getFilter, getFilterProvider, setActiveWhenBackup, setBeanName, setEnabled, setFilter, setPriority, setSecurityFilter, setShutdownSpaceOnInitFailure
protected Map<Integer,org.openspaces.core.space.filter.FilterOperationDelegateInvoker> doGetInvokerLookup()
AbstractFilterProviderFactoryBean.getFilter()
delegate and its annotated methods.doGetInvokerLookup
in class AbstractFilterProviderAdapterFactoryBean
protected Method doGetInitMethod()
OnFilterInit
.doGetInitMethod
in class AbstractFilterProviderAdapterFactoryBean
protected Method doGetCloseMethod()
OnFilterClose
.doGetCloseMethod
in class AbstractFilterProviderAdapterFactoryBean
Copyright © GigaSpaces.