|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.ManualDependency
public class ManualDependency
ManualDependency disables auto-wiring by refusing to resolve any component part. When ManualDependency is used, all properties and parameters need to be explicitly specified using Component.withArgument(), Component.withArguments(), Component.withProperty() and Component.withProperties().
Codehaus.org.
| Constructor Summary | |
|---|---|
ManualDependency(ComponentMap cmap,
java.lang.Object ckey)
Create a new ManualDependency object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
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 local_key,
java.lang.Class type)
Get an instance of a property. |
int |
hashCode()
|
Dependency |
seal()
To create a Dependency that's free of auto-wiring. |
java.lang.String |
toString()
|
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 local_key,
java.lang.Class type)
Verifies that the property instance can be resolved. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManualDependency(ComponentMap cmap,
java.lang.Object ckey)
cmap - the ComponentMap object.ckey - the component key.| Method Detail |
|---|
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.Object getProperty(java.lang.Class component_type,
java.lang.Object local_key,
java.lang.Class type)
Dependency
getProperty in interface Dependencycomponent_type - the type of the component requesting the property.local_key - the key of the property.type - the property 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.Class verifyProperty(java.lang.Class component_type,
java.lang.Object local_key,
java.lang.Class type)
Dependency
verifyProperty in interface Dependencycomponent_type - the type of the component requesting the property.local_key - the property key.type - the expected property type.
public ComponentMap getComponentMap()
Dependency
getComponentMap in interface Dependencypublic java.lang.Object getComponentKey()
Dependency
getComponentKey in interface Dependencypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||