|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Dependency
This interface is responsible for providing dependency to the creation of a component instance.
Codehaus.org.
| Method Summary | |
|---|---|
java.lang.Object |
getArgument(Signature source,
int i,
java.lang.Class type)
Get an instance of an argument. |
java.lang.Object |
getComponentKey()
Get the key of the component being resolved. |
ComponentMap |
getComponentMap()
Get the ComponentMap object. |
Dependency |
getOriginal()
To get the Dependency object before the current one is customized, if any. |
Dependency |
getParent()
Get the dependency for the parent component. |
java.lang.Object |
getProperty(java.lang.Class component_type,
java.lang.Object key,
java.lang.Class type)
Get an instance of a property. |
Dependency |
seal()
To create a Dependency that's free of auto-wiring. |
java.lang.Class |
verifyArgument(Signature source,
int i,
java.lang.Class type)
Verifies that the argument instance can be resolved. |
java.lang.Class |
verifyProperty(java.lang.Class component_type,
java.lang.Object key,
java.lang.Class type)
Verifies that the property instance can be resolved. |
| Method Detail |
|---|
java.lang.Object getArgument(Signature source,
int i,
java.lang.Class type)
throws IrresolveableArgumentException,
ParameterTypeMismatchException,
AmbiguousComponentResolutionException,
ComponentInstantiationException,
YanException
source - the signature of the function requesting this argument.i - the ordinal position of the argument. Starting from 0.type - the parameter type.
IrresolveableArgumentException - if the argument cannot be resolved.
ParameterTypeMismatchException - if the actual type of the argument does not match the expected parameter type.
AmbiguousComponentResolutionException - if ambiguity happens.
ComponentInstantiationException - if any checked exception happens when instantiating the argument.
YanException - if any other component related error happens.
java.lang.Class verifyArgument(Signature source,
int i,
java.lang.Class type)
throws IrresolveableArgumentException,
ParameterTypeMismatchException,
AmbiguousComponentResolutionException,
YanException
source - the signature of the function requesting this argument.i - the ordinal position of the argument. Starting from 0.type - the parameter type.
IrresolveableArgumentException - if the argument cannot be resolved.
ParameterTypeMismatchException - if the actual type of the argument does not match the expected parameter type.
AmbiguousComponentResolutionException - if ambiguity happens.
YanException - if any other component related error happens.
java.lang.Object getProperty(java.lang.Class component_type,
java.lang.Object key,
java.lang.Class type)
throws IrresolveablePropertyException,
PropertyTypeMismatchException,
AmbiguousComponentResolutionException,
ComponentInstantiationException,
YanException
component_type - the type of the component requesting the property.key - the key of the property.type - the property type.
IrresolveablePropertyException - if the property cannot be resolved.
PropertyTypeMismatchException - if the actual type of the property does not match the expected property type.
AmbiguousComponentResolutionException - if ambiguity happens.
ComponentInstantiationException - if any checked exception happens when instantiating the property.
YanException - if any other component related error happens.
java.lang.Class verifyProperty(java.lang.Class component_type,
java.lang.Object key,
java.lang.Class type)
throws IrresolveablePropertyException,
PropertyTypeMismatchException,
AmbiguousComponentResolutionException,
YanException
component_type - the type of the component requesting the property.key - the property key.type - the expected property type.
IrresolveablePropertyException - if the property cannot be resolved.
PropertyTypeMismatchException - if the actual type of the property does not match the expected property type.
AmbiguousComponentResolutionException - if ambiguity happens.
YanException - if any other component related error happens.Dependency getOriginal()
ComponentMap getComponentMap()
java.lang.Object getComponentKey()
Dependency getParent()
Dependency seal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||