com.inline.feature
Interface FeatureModelConfigurator

All Known Implementing Classes:
AbstractFeatureModelConfigurator

public interface FeatureModelConfigurator

FeatureModelConfigurators are used by the feature model to choose between alternative implementations of FeatureFactories, FeatureConstructorFactories, FeatureActionFactories. A configurator can also disable particular FeatureSets, FeatureActions, FeatureConstructors.


Method Summary
 com.sun.java.util.collections.Set getSupportedFeatureTypes()
          A configurator is only interested in a subset of all feature types.
 boolean isDefaultFeatureConstructor(Feature parent, java.lang.String childType, FeatureConstructor constructor)
          The configurator can veto the choice of a particular constructor as the default one.
 boolean isFeatureActionEnabled(Feature feature, FeatureAction action)
          The configurator can disable a specific feature action.
 boolean isFeatureActionFactoryEnabled(Feature feature, FeatureActionFactory factory)
          The configurator can veto action allocation by a factory.
 boolean isFeatureConstructorEnabled(Feature parent, java.lang.String childType, FeatureConstructor constructor)
          The configurator can veto the use of a particular constructor.
 boolean isFeatureConstructorFactoryEnabled(Feature parent, java.lang.String childType, FeatureConstructorFactory factory)
          The configurator can veto feature constructor allocation by a factory
 boolean isFeatureFactoryEnabled(Feature parent, java.lang.String type, FeatureFactory factory)
          The configurator can veto the use of a particular feature factory
 boolean isFeatureRecognitionEnabled(Feature parent, java.net.URL url, FeatureFactory factory)
          The configurator can veto feature recognition by a feature set associated with a particular feature factory.
 

Method Detail

getSupportedFeatureTypes

public com.sun.java.util.collections.Set getSupportedFeatureTypes()
A configurator is only interested in a subset of all feature types. That subset is returned by this method.

isFeatureFactoryEnabled

public boolean isFeatureFactoryEnabled(Feature parent,
                                       java.lang.String type,
                                       FeatureFactory factory)
The configurator can veto the use of a particular feature factory

isFeatureRecognitionEnabled

public boolean isFeatureRecognitionEnabled(Feature parent,
                                           java.net.URL url,
                                           FeatureFactory factory)
The configurator can veto feature recognition by a feature set associated with a particular feature factory.

isFeatureConstructorFactoryEnabled

public boolean isFeatureConstructorFactoryEnabled(Feature parent,
                                                  java.lang.String childType,
                                                  FeatureConstructorFactory factory)
The configurator can veto feature constructor allocation by a factory

isFeatureConstructorEnabled

public boolean isFeatureConstructorEnabled(Feature parent,
                                           java.lang.String childType,
                                           FeatureConstructor constructor)
The configurator can veto the use of a particular constructor.

isDefaultFeatureConstructor

public boolean isDefaultFeatureConstructor(Feature parent,
                                           java.lang.String childType,
                                           FeatureConstructor constructor)
The configurator can veto the choice of a particular constructor as the default one.

isFeatureActionFactoryEnabled

public boolean isFeatureActionFactoryEnabled(Feature feature,
                                             FeatureActionFactory factory)
The configurator can veto action allocation by a factory.

isFeatureActionEnabled

public boolean isFeatureActionEnabled(Feature feature,
                                      FeatureAction action)
The configurator can disable a specific feature action.