org.zeroexchange.common
Class TypedBeansRegistry<T>

java.lang.Object
  extended by org.zeroexchange.common.AbstractBeansRegistry<T>
      extended by org.zeroexchange.common.TypedBeansRegistry<T>
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, BeansRegistry<T>
Direct Known Subclasses:
AbstractDataProcessorsRegistry, ConfigurableTypedBeansRegistry, DefaultContractFlowStatesRegistry, DefaultFeatureRegistry, DefaultMenuDecoratorsFactory, DefaultMoneyManager, DefaultPagePreprocessorsRegistry, DefaultValueFactory

public abstract class TypedBeansRegistry<T>
extends AbstractBeansRegistry<T>
implements org.springframework.beans.factory.InitializingBean

Beans registry elects beans by the specified class.

Author:
black

Constructor Summary
TypedBeansRegistry()
           
 
Method Summary
 void afterPropertiesSet()
           
protected abstract  Class<?> getBeanClass()
           
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.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

TypedBeansRegistry

public TypedBeansRegistry()
Method Detail

isElected

protected boolean isElected(Object bean,
                            String beanName)
Override this method to determine which bean should be included to the current registry.

Specified by:
isElected in class AbstractBeansRegistry<T>

getBeanClass

protected abstract Class<?> getBeanClass()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2013. All Rights Reserved.