|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.SimpleDependency
public class SimpleDependency
A simple implementation of the Dependency interface.
It simply calls ComponentMap.getComponent(Object) and
ComponentMap.getComponentOfType(Class) to resolve component
parts.
Properties and parameters are resolved by type.
Codehaus.org.
| Constructor Summary | |
|---|---|
SimpleDependency(java.lang.Object ckey,
ComponentMap cmap)
Create a SimpleDependency object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getArgument(Signature src,
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 lkey,
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 src,
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 lkey,
java.lang.Class type)
Verifies that the property instance can be resolved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleDependency(java.lang.Object ckey,
ComponentMap cmap)
ckey - the component key.cmap - the container to look into.| Method Detail |
|---|
public ComponentMap getComponentMap()
Dependency
getComponentMap in interface Dependency
public java.lang.Object getArgument(Signature src,
int i,
java.lang.Class type)
Dependency
getArgument in interface Dependencysrc - the signature of the function requesting this argument.i - the ordinal position of the argument. Starting from 0.type - the parameter type.
public java.lang.Class verifyArgument(Signature src,
int i,
java.lang.Class type)
Dependency
verifyArgument in interface Dependencysrc - the signature of the function requesting this argument.i - the ordinal position of the argument. Starting from 0.type - the parameter type.
public java.lang.Object getProperty(java.lang.Class component_type,
java.lang.Object lkey,
java.lang.Class type)
Dependency
getProperty in interface Dependencycomponent_type - the type of the component requesting the property.lkey - the key of the property.type - the property type.
public java.lang.Class verifyProperty(java.lang.Class component_type,
java.lang.Object lkey,
java.lang.Class type)
Dependency
verifyProperty in interface Dependencycomponent_type - the type of the component requesting the property.lkey - the property key.type - the expected property type.
public java.lang.Object getComponentKey()
Dependency
getComponentKey in interface Dependencypublic Dependency getParent()
Dependency
getParent in interface Dependencypublic Dependency getOriginal()
Dependency
getOriginal in interface Dependencypublic Dependency seal()
Dependency
seal in interface Dependency
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||