org.codehaus.groovy.maven.feature.support
Class FeatureSupport
java.lang.Object
org.codehaus.groovy.maven.feature.support.FeatureSupport
- All Implemented Interfaces:
- Feature
- Direct Known Subclasses:
- ClassCompilerFeature, ClassCompilerFeature, ClassCompilerFeature, ClassFactoryFeature, ClassFactoryFeature, ClassFactoryFeature, ConsoleFeature, ConsoleFeature, ConsoleFeature, ScriptExecutorFeature, ScriptExecutorFeature, ScriptExecutorFeature, ShellFeature, ShellFeature, ShellFeature, StubCompilerFeature, StubCompilerFeature, StubCompilerFeature, TraceSanitizerFeature, TraceSanitizerFeature, TraceSanitizerFeature
public abstract class FeatureSupport
- extends java.lang.Object
- implements Feature
Provides support for Feature
implementations.
- Version:
- $Id: FeatureSupport.java 11368 2008-03-31 18:09:18Z user57 $
- Author:
- Jason Dillon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
log
protected final org.slf4j.Logger log
key
protected final java.lang.String key
config
protected final Configuration config
supported
protected final boolean supported
provider
protected Provider provider
FeatureSupport
protected FeatureSupport(java.lang.String key,
boolean supported)
FeatureSupport
protected FeatureSupport(java.lang.String key)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
key
public java.lang.String key()
- Specified by:
key
in interface Feature
name
public java.lang.String name()
- Specified by:
name
in interface Feature
supported
public boolean supported()
- Specified by:
supported
in interface Feature
require
public void require()
- Specified by:
require
in interface Feature
config
public Configuration config()
- Specified by:
config
in interface Feature
create
public Component create(Configuration context)
throws java.lang.Exception
- Specified by:
create
in interface Feature
- Throws:
java.lang.Exception
create
public Component create()
throws java.lang.Exception
- Specified by:
create
in interface Feature
- Throws:
java.lang.Exception
doCreate
protected abstract Component doCreate()
throws java.lang.Exception
- Throws:
java.lang.Exception
provider
protected Provider provider()
asString
public static java.lang.String asString(Feature feature)
Copyright © 2006-2008 Codehaus. All Rights Reserved.