org.zeroexchange.feature
Class AbstractFeature

java.lang.Object
  extended by org.zeroexchange.feature.AbstractFeature
All Implemented Interfaces:
Feature
Direct Known Subclasses:
CollaborationFeature, ReputationFeatureImpl, UserRegistrationFeature

public abstract class AbstractFeature
extends Object
implements Feature

Base class for the features implementations.

Author:
black

Constructor Summary
AbstractFeature()
           
 
Method Summary
 Collection<String> getRequiredFeatureNames()
          Returns names of the required features.
 boolean isEnabled()
          Returns true if the feature is enabled.
 void setEnabled(boolean enabled)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.feature.Feature
getName
 

Constructor Detail

AbstractFeature

public AbstractFeature()
Method Detail

getRequiredFeatureNames

public Collection<String> getRequiredFeatureNames()
Returns names of the required features. Note: Dummy implementation. Override in subclasses if needed.

Specified by:
getRequiredFeatureNames in interface Feature

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()
Description copied from interface: Feature
Returns true if the feature is enabled.

Specified by:
isEnabled in interface Feature

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.