org.codehaus.waffle.registrar
Class RequestAttributeReference

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

public class RequestAttributeReference
extends AbstractReference

Allows for a component dependency to be resolved from a ServletRequest attribute.


NOTE: This should only be utilized from Registrar.request().

Author:
Michael Ward

Constructor Summary
RequestAttributeReference(java.lang.String key)
           
 
Method Summary
static RequestAttributeReference requestAttribute(java.lang.String 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

RequestAttributeReference

public RequestAttributeReference(java.lang.String key)
Parameters:
key - is the String specifying the name of the request attribute.
Method Detail

requestAttribute

public static RequestAttributeReference requestAttribute(java.lang.String 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 String specifying the name of the request attribute.


Copyright © 2008. All Rights Reserved.