|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.composition.model.impl.DefaultDependencyModel
Default implementation of the deplendency model.
Constructor Summary | |
DefaultDependencyModel(Logger logger,
String partition,
String name,
DependencyDescriptor descriptor,
DependencyDirective directive)
Creation of a new dependency model. |
Method Summary | |
ServiceDescriptor[] |
filter(ServiceDescriptor[] candidates)
Filter a set of candidate service descriptors and return the set of acceptable service as a ordered sequence. |
DependencyDescriptor |
getDependency()
Return the dependency descriptor. |
String |
getPath()
Return an explicit path to a supplier component. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultDependencyModel(Logger logger, String partition, String name, DependencyDescriptor descriptor, DependencyDirective directive) throws ModelException
logger
- the logging channelpartition
- the partitionname
- the namedescriptor
- the dependency descriptordirective
- the dependency directive (possibly null)Method Detail |
public DependencyDescriptor getDependency()
getDependency
in interface DependencyModel
public String getPath()
getPath
in interface DependencyModel
public ServiceDescriptor[] filter(ServiceDescriptor[] candidates)
filter
in interface DependencyModel
candidates
- the set of candidate services for the dependency
matching the supplied key
IllegalArgumentException
- if the key is unknown
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |