org.apache.avalon.composition.model.impl
Class OverrideEntryModel

java.lang.Object
  extended byorg.apache.avalon.composition.model.impl.DefaultEntryModel
      extended byorg.apache.avalon.composition.model.impl.OverrideEntryModel
All Implemented Interfaces:
EntryModel

public class OverrideEntryModel
extends DefaultEntryModel

Utility class that enables assignment of an absolute value to a context entry.

Version:
$Revision: 1.3 $ $Date: 2004/02/25 22:54:09 $
Author:
Avalon Development Team

Constructor Summary
OverrideEntryModel(EntryDescriptor descriptor, Object value)
          Creation of a new overriding context entry.
 
Method Summary
 Object getValue()
          Return the context entry value.
 
Methods inherited from class org.apache.avalon.composition.model.impl.DefaultEntryModel
getKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverrideEntryModel

public OverrideEntryModel(EntryDescriptor descriptor,
                          Object value)
Creation of a new overriding context entry.

Parameters:
descriptor - the context entry descriptor
value - the value to return for the entry
Method Detail

getValue

public Object getValue()
Return the context entry value.

Specified by:
getValue in interface EntryModel
Specified by:
getValue in class DefaultEntryModel
Returns:
the context entry value


Copyright © The Apache Software Foundation. All Rights Reserved.