public final class NameDependency extends Object implements Dependency
An implementation of the Dependency interface that allows to
define a dependency based on the name of a bean.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Tests whether this object equals another one.
|
static NameDependency |
getInstance(String name)
Returns an instance of this class for the bean with the specified name.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
public 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(Object obj)
public int hashCode()
public String toString()
public static NameDependency getInstance(String name)
name - the name of the dependent beanCopyright © 2016 The JGUIraffe Team. All rights reserved.