com.inline.feature.example
Class JavaMemberFeatureFactory

java.lang.Object
  |
  +--com.inline.feature.common.AbstractFeatureFactory
        |
        +--com.inline.feature.example.JavaMemberFeatureFactory

public class JavaMemberFeatureFactory
extends AbstractFeatureFactory


Constructor Summary
JavaMemberFeatureFactory()
           
 
Method Summary
 FeatureSet allocateChildFeatureSet(Feature parent, java.lang.String type)
          Returns a FeatureSet object which recognizes subfeatures on the supplied parent feature.
 com.sun.java.util.collections.Set getParentFeatureTypes(FeatureModel model, java.lang.String type)
          This factory can only create subfeatures for the feature types returned by this method.
 java.net.URL getParentFeatureURL(FeatureModel model, java.net.URL url)
          Override this method to support direct feature lookup in the model.
 com.sun.java.util.collections.Set getSupportedFeatureTypes(FeatureModel model)
          A factory is associated with one or more feature types within the scope of every feature model.
 
Methods inherited from class com.inline.feature.common.AbstractFeatureFactory
isEnabled, isModelType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMemberFeatureFactory

public JavaMemberFeatureFactory()
Method Detail

getSupportedFeatureTypes

public com.sun.java.util.collections.Set getSupportedFeatureTypes(FeatureModel model)
Description copied from interface: FeatureFactory
A factory is associated with one or more feature types within the scope of every feature model.

getParentFeatureTypes

public com.sun.java.util.collections.Set getParentFeatureTypes(FeatureModel model,
                                                               java.lang.String type)
Description copied from interface: FeatureFactory
This factory can only create subfeatures for the feature types returned by this method. This method is used for optimization of the factory lookup.

allocateChildFeatureSet

public FeatureSet allocateChildFeatureSet(Feature parent,
                                          java.lang.String type)
Description copied from interface: FeatureFactory
Returns a FeatureSet object which recognizes subfeatures on the supplied parent feature. Note that the overall list of children is composed of sets returned by all relevant factories.

getParentFeatureURL

public java.net.URL getParentFeatureURL(FeatureModel model,
                                        java.net.URL url)
Description copied from class: AbstractFeatureFactory
Override this method to support direct feature lookup in the model. The method should infer parent feature's URL from the supplied feature URL.
Overrides:
getParentFeatureURL in class AbstractFeatureFactory