org.zeroexchange.common.processors
Class AbstractDataProcessorsRegistry<P>

java.lang.Object
  extended by org.zeroexchange.common.AbstractBeansRegistry<T>
      extended by org.zeroexchange.common.TypedBeansRegistry<P>
          extended by 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

Constructor Summary
AbstractDataProcessorsRegistry()
           
 
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 org.zeroexchange.common.TypedBeansRegistry
afterPropertiesSet, getBeanClass
 
Methods inherited from class org.zeroexchange.common.AbstractBeansRegistry
createBeansCollection, getBeans, postProcessAfterInitialization, postProcessBeforeInitialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDataProcessorsRegistry

public AbstractDataProcessorsRegistry()
Method Detail

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.