org.sonatype.gshell.logging
Class ComponentSupport

java.lang.Object
  extended by org.sonatype.gshell.logging.ComponentSupport
All Implemented Interfaces:
Component
Direct Known Subclasses:
EffectiveProfileComponent, ListenerComponent

public abstract class ComponentSupport
extends Object
implements Component

Support for Component implementations.

Since:
2.5
Author:
Jason Dillon

Field Summary
 
Fields inherited from interface org.sonatype.gshell.logging.Component
DEFAULT_NAME
 
Constructor Summary
ComponentSupport(String type)
           
ComponentSupport(String type, String name)
           
 
Method Summary
 String getName()
           
 String getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sonatype.gshell.logging.Component
getTarget
 

Constructor Detail

ComponentSupport

public ComponentSupport(String type,
                        String name)

ComponentSupport

public ComponentSupport(String type)
Method Detail

getType

public String getType()
Specified by:
getType in interface Component

getName

public String getName()
Specified by:
getName in interface Component

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Sonatype. All Rights Reserved.