org.jboss.dna.common.component
Class AbstractComponent<T extends ComponentConfig>
java.lang.Object
org.jboss.dna.common.component.AbstractComponent<T>
- Type Parameters:
T
- the type of configuration
- All Implemented Interfaces:
- Component<T>
public class AbstractComponent<T extends ComponentConfig>
- extends Object
- implements Component<T>
- Author:
- Randall Hauch
AbstractComponent
public AbstractComponent()
getConfiguration
public T getConfiguration()
- Return the configuration for this component, as supplied to the last
Component.setConfiguration(ComponentConfig)
invocation.
- Specified by:
getConfiguration
in interface Component<T extends ComponentConfig>
- Returns:
- the configuration, or null if not yet configured
setConfiguration
public void setConfiguration(T 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<T extends ComponentConfig>
- Parameters:
configuration
- the configuration for the component
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.