org.viewaframework.core
Class DefaultApplicationContext

java.lang.Object
  extended by org.viewaframework.core.DefaultApplicationContext
All Implemented Interfaces:
ApplicationContext

public class DefaultApplicationContext
extends Object
implements ApplicationContext

This class is a basic implementation of the ApplicationContext

Since:
1.0.2
Author:
Mario Garcia

Constructor Summary
DefaultApplicationContext()
           
 
Method Summary
 Object getAttribute(String arg0)
          This method retrieves an object from ApplicationContext by its name.
 void removeAttribute(String arg0)
          This method removes an object by its name.
 void setAttribute(String arg0, Object arg1)
          This methods stores an object by its name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultApplicationContext

public DefaultApplicationContext()
Method Detail

getAttribute

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

Specified by:
getAttribute in interface ApplicationContext
Parameters:
arg0 - The name of the object
Returns:
The retrieved object

removeAttribute

public void removeAttribute(String arg0)
Description copied from interface: ApplicationContext
This method removes an object by its name. It's equals to call setAttribute("name",null).

Specified by:
removeAttribute in interface ApplicationContext
Parameters:
arg0 - The name of the object

setAttribute

public void setAttribute(String arg0,
                         Object arg1)
Description copied from interface: ApplicationContext
This methods stores an object by its name

Specified by:
setAttribute in interface ApplicationContext
Parameters:
arg0 - The name of the object
arg1 - The object itself


Copyright © 2010. All Rights Reserved.