GigaSpaces XAP 10.0.1 API

org.openspaces.core.space.filter
Class AnnotationFilterFactoryBean

java.lang.Object
  extended by org.openspaces.core.space.filter.AbstractFilterProviderFactoryBean
      extended by org.openspaces.core.space.filter.AbstractFilterProviderAdapterFactoryBean
          extended by org.openspaces.core.space.filter.AnnotationFilterFactoryBean
All Implemented Interfaces:
FilterProviderFactory, Aware, BeanNameAware, InitializingBean

public class AnnotationFilterFactoryBean
extends AbstractFilterProviderAdapterFactoryBean

A 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.

Author:
kimchy
See Also:
FilterOperationDelegate, FilterProvider, ISpaceFilter, FilterOperationCodes

Constructor Summary
AnnotationFilterFactoryBean()
           
 
Method Summary
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.
 
Methods inherited from class org.openspaces.core.space.filter.AbstractFilterProviderAdapterFactoryBean
addInvoker, doGetFilterProvider
 
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

AnnotationFilterFactoryBean

public AnnotationFilterFactoryBean()
Method Detail

doGetInvokerLookup

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.

Specified by:
doGetInvokerLookup in class AbstractFilterProviderAdapterFactoryBean

doGetInitMethod

protected Method doGetInitMethod()
Returns the filter lifecycle method annotated with OnFilterInit.

Specified by:
doGetInitMethod in class AbstractFilterProviderAdapterFactoryBean

doGetCloseMethod

protected Method doGetCloseMethod()
Returns the filter lifecycle method annotated with OnFilterClose.

Specified by:
doGetCloseMethod in class AbstractFilterProviderAdapterFactoryBean

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.