com.inline.feature.example
Class JavaMethodFeature

java.lang.Object
  |
  +--com.inline.feature.common.AbstractResourceListener
        |
        +--com.inline.feature.common.AbstractFeature
              |
              +--com.inline.feature.example.JavaMethodFeature

public class JavaMethodFeature
extends AbstractFeature


Field Summary
protected  java.lang.String methodSignature
           
static java.lang.String TYPE
           
 
Fields inherited from class com.inline.feature.common.AbstractResourceListener
active, featureModel, parent, resourceAdapters, resourceSetAdapters, revalidate
 
Constructor Summary
JavaMethodFeature(Feature parent, java.lang.String signature)
           
 
Method Summary
static java.lang.String constructSignature(Feature parent, java.lang.String methodSignature)
           
 java.lang.String getMethodSignature()
           
 java.lang.String getType()
          Returns the feature type.
 void parseSignature(java.lang.String signature)
          Override this to extract some of the feature properties from the signature.
 
Methods inherited from class com.inline.feature.common.AbstractFeature
activate, addManagedProperty, addMessages, addPropertyChangeListener, applyChanges, canChange, canDelete, commit, delete, firePropertyChange, firePropertyChange, getActions, getChildren, getChildSetActions, getDisplayProperties, getDisplayType, getMessages, getPrimitiveActions, getSignature, getURL, insert, invalidate, isMarkedForDeletion, isModified, isModified, isNew, markForDeletion, propertyChanged, refresh, refresh, refreshProperties, refreshProperty, release, removePropertyChangeListener, toString, toStringVerbose, validateChanges, validateChanges
 
Methods inherited from class com.inline.feature.common.AbstractResourceListener
getFeatureModel, getParent, passivate, propertyChange, registerDependencies, registerResourceAdapter, registerResourceAdapter, registerResourceSetAdapter, registerResourceSetAdapter, resourceAdded, resourceChanged, resourceRemoved, unregisterResourceAdapter, unregisterResourceSetAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE

methodSignature

protected java.lang.String methodSignature
Constructor Detail

JavaMethodFeature

public JavaMethodFeature(Feature parent,
                         java.lang.String signature)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: Feature
Returns the feature type.

The recommended type declaration syntax is:

      class MyFeature ... {
          public static final String TYPE = "foo-bar-myfeature";
          public String getType() { return TYPE; }
          ...
      }
  

constructSignature

public static java.lang.String constructSignature(Feature parent,
                                                  java.lang.String methodSignature)

parseSignature

public void parseSignature(java.lang.String signature)
Description copied from class: AbstractFeature
Override this to extract some of the feature properties from the signature. If the signature is not carrying any of those properties, there is no need to override this method.
Overrides:
parseSignature in class AbstractFeature

getMethodSignature

public java.lang.String getMethodSignature()