org.viewaframework.core
Interface ApplicationContextAware

All Known Subinterfaces:
Application
All Known Implementing Classes:
AbstractApplication, DefaultApplication

public interface ApplicationContextAware

This interface allows Application to have a context. Within that context you can store and retrieve attributes by their names.

Author:
Mario Garcia

Method Summary
 ApplicationContext getApplicationContext()
          This method returns the current available ApplicationContext
 void setApplicationContext(ApplicationContext applicationContext)
          This method sets up the ApplicationContext.
 

Method Detail

getApplicationContext

ApplicationContext getApplicationContext()
This method returns the current available ApplicationContext

Returns:

setApplicationContext

void setApplicationContext(ApplicationContext applicationContext)
                           throws ApplicationContextException
This method sets up the ApplicationContext. If there's already an available applicationContext it will throw an ApplicationContextException.

Parameters:
applicationContext - The ApplicationContext
Throws:
ApplicationContextException - If there's a previous ApplicationContext


Copyright © 2010. All Rights Reserved.