org.codehaus.groovy.maven.feature.support
Class FeatureSupport

java.lang.Object
  extended by 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

Field Summary
protected  Configuration config
           
protected  java.lang.String key
           
protected  org.slf4j.Logger log
           
protected  Provider provider
           
protected  boolean supported
           
 
Constructor Summary
protected FeatureSupport(java.lang.String key)
           
protected FeatureSupport(java.lang.String key, boolean supported)
           
 
Method Summary
static java.lang.String asString(Feature feature)
           
 Configuration config()
           
 Component create()
           
 Component create(Configuration context)
           
protected abstract  Component doCreate()
           
 int hashCode()
           
 java.lang.String key()
           
 java.lang.String name()
           
protected  Provider provider()
           
 void require()
           
 boolean supported()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

FeatureSupport

protected FeatureSupport(java.lang.String key,
                         boolean supported)

FeatureSupport

protected FeatureSupport(java.lang.String key)
Method Detail

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.