org.jboss.dna.common.component
Class AbstractComponent

java.lang.Object
  extended by org.jboss.dna.common.component.AbstractComponent
All Implemented Interfaces:
Component

public class AbstractComponent
extends java.lang.Object
implements Component

Author:
Randall Hauch

Constructor Summary
AbstractComponent()
           
 
Method Summary
 ComponentConfig getConfiguration()
          Return the configuration for this component, as supplied to the last Component.setConfiguration(ComponentConfig) invocation.
 void setConfiguration(ComponentConfig configuration)
          This method allows the implementation to initialize and configure itself using the supplied ComponentConfig information, and is called prior to any other class to this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractComponent

public AbstractComponent()
Method Detail

getConfiguration

public ComponentConfig getConfiguration()
Return the configuration for this component, as supplied to the last Component.setConfiguration(ComponentConfig) invocation.

Specified by:
getConfiguration in interface Component
Returns:
the configuration, or null if not yet configured

setConfiguration

public void setConfiguration(ComponentConfig configuration)
This method allows the implementation to initialize and configure itself using the supplied ComponentConfig information, and is called prior to any other class to this object. When this method is called, the implementation must maintain a reference to the supplied configuration (which should then be returned in Component.getConfiguration().

Specified by:
setConfiguration in interface Component
Parameters:
configuration - the configuration for the component


Copyright © 2008. All Rights Reserved.