|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.di.impl.ClassDependency
public class ClassDependency
An implementation of the Dependency interface that allows to
define a dependency based on a bean class.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this object with another one. |
ClassDescription |
getDependentClass()
Returns the description of the class of this dependency. |
static ClassDependency |
getInstance(java.lang.Class<?> cls)
Returns a ClassDependency instance for the specified
class. |
static ClassDependency |
getInstance(ClassDescription clsdsc)
Returns a ClassDependency instance for the specified
ClassDescription. |
int |
hashCode()
Returns a hash code for this object. |
BeanProvider |
resolve(BeanStore store,
DependencyProvider depProvider)
Resolves this dependency on the specified bean store. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public ClassDescription getDependentClass()
public BeanProvider resolve(BeanStore store,
DependencyProvider depProvider)
resolve in interface Dependencystore - the bean store to be searcheddepProvider - the dependency provider
InjectionException - if no fitting bean provider can be foundpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare to
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static ClassDependency getInstance(java.lang.Class<?> cls)
ClassDependency instance for the specified
class.
cls - the class of the dependency (must not be null)
java.lang.IllegalArgumentException - if the class is nullpublic static ClassDependency getInstance(ClassDescription clsdsc)
ClassDependency instance for the specified
ClassDescription.
clsdsc - the class description
java.lang.IllegalArgumentException - if the class description is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||