org.zeroexchange.common.processors
Class AbstractDataProcessorsRegistry<P>
java.lang.Object
org.zeroexchange.common.AbstractBeansRegistry<T>
org.zeroexchange.common.TypedBeansRegistry<P>
org.zeroexchange.common.processors.AbstractDataProcessorsRegistry<P>
- All Implemented Interfaces:
- org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, BeansRegistry<P>
- Direct Known Subclasses:
- ApplicationEventsDispatcher, DefaultAuthTokenInformerFactory, DefaultCredentialReadersFactory, DefaultDataImportersFactory, DefaultRepresentationFactory, DefaultStockManager, DefaultTargetKeyFactory, DefaultTargetLinkFactory, LocalizationProvidersFactory, SimpleCriteriaFilterProcessorsFactory, SimpleSearchableFieldsFactory
public abstract class AbstractDataProcessorsRegistry<P>
- extends TypedBeansRegistry<P>
Base functionality for the data processors.
- Author:
- black
Method Summary |
protected P |
getProcessor(Class<?> dataClass)
Returns FIRST processor with default classifier. |
protected List<P> |
getProcessors(Class<?> dataClass)
Returns all processor with default classifier. |
protected boolean |
isElected(Object bean,
String beanName)
Override this method to determine which bean should be included to the current registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDataProcessorsRegistry
public AbstractDataProcessorsRegistry()
isElected
protected boolean isElected(Object bean,
String beanName)
- Override this method to determine which bean should be included to the current registry.
- Overrides:
isElected
in class TypedBeansRegistry<P>
getProcessor
protected P getProcessor(Class<?> dataClass)
throws ProcessorNotFoundException
- Returns FIRST processor with default classifier.
NOTE: throws ProcessorNotFoundException if the requested processor can not be found.
- Throws:
ProcessorNotFoundException
getProcessors
protected List<P> getProcessors(Class<?> dataClass)
throws ProcessorNotFoundException
- Returns all processor with default classifier.
NOTE: throws ProcessorNotFoundException if the requested processor can not be found.
- Throws:
ProcessorNotFoundException
Copyright © 2013. All Rights Reserved.