org.vraptor.webapp
Class DefaultWebApplication

java.lang.Object
  extended by org.vraptor.webapp.DefaultWebApplication
All Implemented Interfaces:
WebApplication

public class DefaultWebApplication
extends Object
implements WebApplication

A simple web application configuration. It uses the default url manager.

Author:
Guilherme Silveira, Paulo Silveira

Constructor Summary
DefaultWebApplication(javax.servlet.ServletContext context)
           
 
Method Summary
 ApplicationContext getApplicationContext()
          Returns the application context.
 ComponentManager getComponentManager()
          Returns the component manager
 ComponentContainer getContainer()
           
 ConverterManager getConverterManager()
          Returns the converter manager
 ViewManager getDefaultViewManager()
          Returns the view manager
 Introspector getIntrospector()
          Returns the application introspector.
 LogicLocator getLogicLocator()
          Deprecated.  
 PluginManager getPluginManager()
          Returns the plugin manager
 void init()
          Reads the vraptor.xml file.
 void setViewManager(ViewManager viewManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWebApplication

public DefaultWebApplication(javax.servlet.ServletContext context)
Method Detail

getApplicationContext

public ApplicationContext getApplicationContext()
Description copied from interface: WebApplication
Returns the application context.

Specified by:
getApplicationContext in interface WebApplication
Returns:
the application context

getLogicLocator

@Deprecated
public LogicLocator getLogicLocator()
Deprecated. 

Should be accessed through dependency injection.

Specified by:
getLogicLocator in interface WebApplication
Returns:
the url manager

init

public void init()
          throws ConfigException
Reads the vraptor.xml file. If not found, search for component classes class loading all of them. Inits this configuration: overrides the viewmanager with the views.properties file

Specified by:
init in interface WebApplication
Throws:
ConfigException
See Also:
WebApplication.init()

getComponentManager

public ComponentManager getComponentManager()
Description copied from interface: WebApplication
Returns the component manager

Specified by:
getComponentManager in interface WebApplication
Returns:
the component manager

getDefaultViewManager

public ViewManager getDefaultViewManager()
Description copied from interface: WebApplication
Returns the view manager

Specified by:
getDefaultViewManager in interface WebApplication
Returns:
the view manager

getConverterManager

public ConverterManager getConverterManager()
Description copied from interface: WebApplication
Returns the converter manager

Specified by:
getConverterManager in interface WebApplication
Returns:
the converter manager

setViewManager

public void setViewManager(ViewManager viewManager)
Specified by:
setViewManager in interface WebApplication

getPluginManager

public PluginManager getPluginManager()
Description copied from interface: WebApplication
Returns the plugin manager

Specified by:
getPluginManager in interface WebApplication
Returns:
the plugin manager

getIntrospector

public Introspector getIntrospector()
Description copied from interface: WebApplication
Returns the application introspector.

Specified by:
getIntrospector in interface WebApplication
Returns:
the application introspector

getContainer

public ComponentContainer getContainer()
Specified by:
getContainer in interface WebApplication


Copyright © 2004-2008 VRaptor. All Rights Reserved.