org.hudsonci.plugins.blacklist.internal
Class BlacklistManagerImpl

java.lang.Object
  extended by org.hudsonci.plugins.blacklist.internal.BlacklistManagerImpl
All Implemented Interfaces:
BlacklistManager

@Named
@Singleton
public class BlacklistManagerImpl
extends Object
implements BlacklistManager

Default BlacklistManager implementation that uses the classes simple name to locate individual features. Logs operations and provides additional methods for testing and debugging.

Since:
1.1
Author:
Jamie Whitehouse

Constructor Summary
BlacklistManagerImpl(List<BlacklistedFeature> features, org.hudsonci.plugins.blacklist.internal.FeatureIndexer indexer)
           
 
Method Summary
 void disableAllFeatures()
          Disables all blacklisted features.
 void disableFeature(String featureName)
          Disables a specific blacklisted feature.
 void enableAllFeatures()
          Enables all blacklisted features.
 void enableFeature(String featureName)
          Enables a specific blacklisted feature.
 Collection<BlacklistedFeature> getManagedFeatures()
          Retrieves the features managed by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlacklistManagerImpl

@Inject
public BlacklistManagerImpl(List<BlacklistedFeature> features,
                                   org.hudsonci.plugins.blacklist.internal.FeatureIndexer indexer)
Method Detail

getManagedFeatures

public Collection<BlacklistedFeature> getManagedFeatures()
Retrieves the features managed by this class. Useful in testing and debugging.

Returns:
the features managed by this class

disableAllFeatures

public void disableAllFeatures()
Description copied from interface: BlacklistManager
Disables all blacklisted features.

Specified by:
disableAllFeatures in interface BlacklistManager

enableAllFeatures

public void enableAllFeatures()
Description copied from interface: BlacklistManager
Enables all blacklisted features.

Specified by:
enableAllFeatures in interface BlacklistManager

disableFeature

public void disableFeature(String featureName)
Description copied from interface: BlacklistManager
Disables a specific blacklisted feature.

Specified by:
disableFeature in interface BlacklistManager
Parameters:
featureName - the name for a feature, usually the classes simple name.

enableFeature

public void enableFeature(String featureName)
Description copied from interface: BlacklistManager
Enables a specific blacklisted feature.

Specified by:
enableFeature in interface BlacklistManager
Parameters:
featureName - the name for a feature, usually the classes simple name.


Copyright © 2004-2012 Hudson. All Rights Reserved.