Weaver 3.1.0a1-D1

com.oldlight.weaver.interpreter
Class WeaverBeanContextImpl

java.lang.Object
  extended bycom.oldlight.weaver.interpreter.WeaverBeanContextImpl
All Implemented Interfaces:
WeaverBeanContext

public class WeaverBeanContextImpl
extends Object
implements WeaverBeanContext

Stores values supplied to W-Beans via the param tag

Author:
Paul Harvey

Field Summary
private  HashMap attributes
           
 
Constructor Summary
WeaverBeanContextImpl()
           
 
Method Summary
 Object getAttribute(String name)
          Get a bean-scoped attribute.
 void removeAttribute(String name)
          Remove a bean-scoped attribute.
 void setAttribute(String name, Object value)
          Set a bean-scoped attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

private HashMap attributes
Constructor Detail

WeaverBeanContextImpl

public WeaverBeanContextImpl()
Method Detail

setAttribute

public void setAttribute(String name,
                         Object value)
Set a bean-scoped attribute

Specified by:
setAttribute in interface WeaverBeanContext
Parameters:
name - Name of the attribute to set.
value - Value to set the attribute to.

getAttribute

public Object getAttribute(String name)
Get a bean-scoped attribute.

Specified by:
getAttribute in interface WeaverBeanContext
Parameters:
name - Name of the attribute to retieve.
Returns:
Value of the named attribue - or null if the attribute cannot be found.

removeAttribute

public void removeAttribute(String name)
Remove a bean-scoped attribute.

Specified by:
removeAttribute in interface WeaverBeanContext
Parameters:
name - Name of the attribute to remove.

Copyright ©Paul Harvey