|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.model.impl.DefaultEntryModel
org.apache.avalon.composition.model.impl.DefaultConstructorModel
Default implementation of a the context entry constructor model.
Constructor Summary | |
DefaultConstructorModel(EntryDescriptor descriptor,
ConstructorDirective directive,
ComponentContext context,
Map map)
Creation of a new context entry import model. |
Method Summary | |
Object |
getValue()
Return the context entry value. |
Object |
getValue(ClassLoader loader,
Class clazz,
String argument,
Parameter[] parameters)
Return the derived parameter value. |
Object |
getValue(Parameter p)
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 |
public DefaultConstructorModel(EntryDescriptor descriptor, ConstructorDirective directive, ComponentContext context, Map map) throws ModelException
descriptor
- the context entry descriptordirective
- the context entry directivecontext
- the containment contextmap
- a map of available context entriesMethod Detail |
public Object getValue() throws ModelException
getValue
in interface EntryModel
getValue
in class DefaultEntryModel
ModelException
public Object getValue(Parameter p) throws ModelException
ModelException
public Object getValue(ClassLoader loader, Class clazz, String argument, Parameter[] parameters) throws ModelException
loader
- the classloader to useclazz
- the constructor classargument
- a single string constructor argumentparameters
- an alternative sequence of arguments
ModelException
- if the parameter value cannot be resolved
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |