|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.waffle.registrar.AbstractReference
org.codehaus.waffle.registrar.ComponentReference
public class ComponentReference
Allows for a component dependency to be resolved from another component registered with Waffle. This allows more than one implementation to be registered with Waffle without causing ambiguity issues.
| Constructor Summary | |
|---|---|
ComponentReference(java.lang.Object key)
|
|
| Method Summary | |
|---|---|
static ComponentReference |
component(java.lang.Object key)
This method can be statically imported into an Application's Registrar allowing for a more fluent interface to define components and their dependencies |
| Methods inherited from class org.codehaus.waffle.registrar.AbstractReference |
|---|
getKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentReference(java.lang.Object key)
key - is the key the dependent component was registered under (usually a String or Class)| Method Detail |
|---|
public static ComponentReference component(java.lang.Object key)
key - is the key the dependent component was registered under (usually a String or Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||