org.zeroexchange.feature
Class DefaultFeatureRegistry

java.lang.Object
  extended by org.zeroexchange.common.AbstractBeansRegistry<T>
      extended by org.zeroexchange.common.TypedBeansRegistry<Feature>
          extended by org.zeroexchange.feature.DefaultFeatureRegistry
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, BeansRegistry<Feature>, FeaturesRegistry

public class DefaultFeatureRegistry
extends TypedBeansRegistry<Feature>
implements FeaturesRegistry

the default implementation of the feature registry.

Author:
black

Constructor Summary
DefaultFeatureRegistry()
           
 
Method Summary
protected  Class<?> getBeanClass()
           
 boolean isFeatureEnabled(String featureName)
          Returns true of the specified feature is enabled.
 
Methods inherited from class org.zeroexchange.common.TypedBeansRegistry
afterPropertiesSet, isElected
 
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

DefaultFeatureRegistry

public DefaultFeatureRegistry()
Method Detail

isFeatureEnabled

public boolean isFeatureEnabled(String featureName)
Returns true of the specified feature is enabled.

Specified by:
isFeatureEnabled in interface FeaturesRegistry

getBeanClass

protected Class<?> getBeanClass()
Specified by:
getBeanClass in class TypedBeansRegistry<Feature>


Copyright © 2013. All Rights Reserved.