org.viewaframework.core
Interface ApplicationContext

All Known Implementing Classes:
DefaultApplicationContext

public interface ApplicationContext

This interface represents an Application scope. Inside this scope you can store, retrieve, and remove attributes by their names.

Author:
Mario Garcia

Method Summary
 Object getAttribute(String name)
          This method retrieves an object from ApplicationContext by its name.
 void removeAttribute(String name)
          This method removes an object by its name.
 void setAttribute(String name, Object value)
          This methods stores an object by its name
 

Method Detail

setAttribute

void setAttribute(String name,
                  Object value)
This methods stores an object by its name

Parameters:
name - The name of the object
value - The object itself

removeAttribute

void removeAttribute(String name)
This method removes an object by its name. It's equals to call setAttribute("name",null).

Parameters:
name - The name of the object

getAttribute

Object getAttribute(String name)
This method retrieves an object from ApplicationContext by its name. It returns null if the method can't be found.

Parameters:
name - The name of the object
Returns:
The retrieved object


Copyright © 2010. All Rights Reserved.