net.dpml.test
Class ExampleComponent
java.lang.Object
net.dpml.test.ExampleComponent
- All Implemented Interfaces:
- ColorManager
public class ExampleComponent
- extends Object
- implements ColorManager
Component implementation that demonstrates the use of a context inner-class.
- Version:
- 1.2.0
- Author:
- Digital Product Meta Library
Method Summary |
Color |
getColor()
Return the color value from the supplied context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleComponent
public ExampleComponent(Logger logger,
ExampleComponent.Context context)
- Creation of a new ExampleComponent using a supplied
logging channel and context.
- Parameters:
logger
- the assigned logging channelcontext
- the assigned context
getColor
public Color getColor()
- Return the color value from the supplied context.
- Specified by:
getColor
in interface ColorManager
- Returns:
- the color value