|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.di.impl.NameDependency
public class NameDependency
An implementation of the Dependency interface that allows to
define a dependency based on the name of a bean.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests whether this object equals another one. |
static NameDependency |
getInstance(java.lang.String name)
Returns an instance of this class for the bean with the specified name. |
java.lang.String |
getName()
Returns the name of the dependent bean. |
int |
hashCode()
Returns a hash code for this object. |
BeanProvider |
resolve(BeanStore store,
DependencyProvider depProvider)
Resolves the named dependency from 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 java.lang.String getName()
public BeanProvider resolve(BeanStore store,
DependencyProvider depProvider)
resolve in interface Dependencystore - the bean storedepProvider - the dependency provider (not used here)
InjectionException - if the provider cannot be resolvedpublic 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 NameDependency getInstance(java.lang.String name)
name - the name of the dependent bean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||