net.dpml.test
Class ExampleComponent

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

Nested Class Summary
static interface ExampleComponent.Context
          Component driven context criteria specification.
 
Constructor Summary
ExampleComponent(Logger logger, ExampleComponent.Context context)
          Creation of a new ExampleComponent using a supplied logging channel and context.
 
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
 

Constructor Detail

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 channel
context - the assigned context
Method Detail

getColor

public Color getColor()
Return the color value from the supplied context.

Specified by:
getColor in interface ColorManager
Returns:
the color value