com.fatwire.gst.foundation.groovy.context
Class GroovyWebContext

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.support.WebAppContext
      extended by com.fatwire.gst.foundation.controller.action.support.DefaultWebAppContext
          extended by com.fatwire.gst.foundation.groovy.context.GroovyWebContext
All Implemented Interfaces:
FactoryProducer, AppContext

public class GroovyWebContext
extends DefaultWebAppContext

WebAppContext that is using Groovy to load Actions.

Since:
11 mei 2012
Author:
Dolf Dijkstra

Field Summary
 
Fields inherited from class com.fatwire.gst.foundation.controller.support.WebAppContext
LOG, WEB_CONTEXT_NAME
 
Constructor Summary
GroovyWebContext(javax.servlet.ServletContext context, AppContext app)
          This constructor is needed for the WebAppContextLoader.
 
Method Summary
 ActionLocator createActionLocator()
           
 ClassLoader getClassLoader()
           
 Factory getFactory(COM.FutureTense.Interfaces.ICS ics)
          Method to produce a Factory to access services that need access to ICS
protected  GroovyLoader getGroovyLoader()
           
protected  ActionLocator getRootActionLocator(Injector injector)
           
 
Methods inherited from class com.fatwire.gst.foundation.controller.action.support.DefaultWebAppContext
createActionNameResolver, createFactoryProducer, createInjector
 
Methods inherited from class com.fatwire.gst.foundation.controller.support.WebAppContext
getBean, getServletContext, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyWebContext

public GroovyWebContext(javax.servlet.ServletContext context,
                        AppContext app)
This constructor is needed for the WebAppContextLoader.

Parameters:
context -
app -
Method Detail

createActionLocator

public ActionLocator createActionLocator()
Overrides:
createActionLocator in class DefaultWebAppContext

getGroovyLoader

protected GroovyLoader getGroovyLoader()
Returns:
GroovyLoader that looks at elementcatalog and /WEB-INF/gsf-groovy for groovy classes.

getRootActionLocator

protected ActionLocator getRootActionLocator(Injector injector)

getFactory

public Factory getFactory(COM.FutureTense.Interfaces.ICS ics)
Description copied from interface: FactoryProducer
Method to produce a Factory to access services that need access to ICS

Specified by:
getFactory in interface FactoryProducer
Overrides:
getFactory in class DefaultWebAppContext
Returns:
the Factory to create services that need access to ics.

getClassLoader

public ClassLoader getClassLoader()


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.