org.codehaus.waffle.registrar
Class ComponentReference

java.lang.Object
  extended by org.codehaus.waffle.registrar.AbstractReference
      extended by org.codehaus.waffle.registrar.ComponentReference
All Implemented Interfaces:
Reference

public class ComponentReference
extends AbstractReference

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.

Author:
Michael Ward

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

ComponentReference

public ComponentReference(java.lang.Object key)
Parameters:
key - is the key the dependent component was registered under (usually a String or Class)
Method Detail

component

public 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

Parameters:
key - is the key the dependent component was registered under (usually a String or Class)


Copyright © 2008. All Rights Reserved.