com.inline.feature.common
Class AbstractFeatureConstructorFactory

java.lang.Object
  |
  +--com.inline.feature.common.AbstractFeatureConstructorFactory
Direct Known Subclasses:
RandomFieldConstructorFactory

public abstract class AbstractFeatureConstructorFactory
extends java.lang.Object
implements FeatureConstructorFactory

Recommended superclass for FeatureConstructorFactories.


Fields inherited from interface com.inline.feature.FeatureConstructorFactory
TYPE
 
Constructor Summary
AbstractFeatureConstructorFactory()
           
 
Method Summary
 boolean isEnabled(Feature parent, java.lang.String childType)
          The default implementation of this method forwards this request to the FeatureModel by calling FeatureModel.isFeatureConstructorFactoryEnabled().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFeatureConstructorFactory

public AbstractFeatureConstructorFactory()
Method Detail

isEnabled

public boolean isEnabled(Feature parent,
                         java.lang.String childType)
The default implementation of this method forwards this request to the FeatureModel by calling FeatureModel.isFeatureConstructorFactoryEnabled(). This allows FeatureModel to resolve conflicts between factories supporting the same type.
Specified by:
isEnabled in interface FeatureConstructorFactory
See Also:
FeatureModel.isFeatureConstructorFactoryEnabled(Feature,String,FeatureConstructorFactory)