com.oldlight.weaver.interpreter
Class WeaverBeanContextImpl
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributes
private HashMap attributes
WeaverBeanContextImpl
public WeaverBeanContextImpl()
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.