org.apache.cocoon.components.flow.apples
Class SpringApplesProcessor
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.components.flow.AbstractInterpreter
org.apache.cocoon.components.flow.apples.ApplesProcessor
org.apache.cocoon.components.flow.apples.SpringApplesProcessor
- All Implemented Interfaces:
- Configurable, Contextualizable, org.apache.cocoon.components.flow.ContinuationsDisposer, Disposable, org.apache.cocoon.components.flow.Interpreter, Serviceable, SingleThreaded
- public class SpringApplesProcessor
- extends ApplesProcessor
A special version of ApplesProcessor that interprets the parameter passed to
instantiateController as service/bean name instead of classname. The class is
probably most useful with spring container integration.
Declare your flow in sitemap as <map:flow
language="service-apples"/>> Define your AppleController beans in
block/config/spring/ and call them from sitemap by <map:call
function="beanName"/>>
Please remember to declare your StatelessAppleControllers as singletons. If
you wish to use continuations beans have to be declared as non-singletons.
You are of course free to use any container features in your beans like
dependency injection.
- Version:
- $Id: SpringApplesProcessor.java 587757 2007-10-24 02:52:49Z vgritsenko $
Nested classes inherited from class org.apache.cocoon.components.flow.Interpreter |
org.apache.cocoon.components.flow.Interpreter.Argument |
Fields inherited from class org.apache.cocoon.components.flow.AbstractInterpreter |
avalonContext, checkTime, continuationsMgr, manager, needResolve, newObjectModel, processInfoProvider, reloadScripts, settings |
Fields inherited from interface org.apache.cocoon.components.flow.Interpreter |
ROLE |
Methods inherited from class org.apache.cocoon.components.flow.AbstractInterpreter |
configure, contextualize, dispose, forwardTo, getInterpreterID, getScriptExtension, register, service, setInterpreterID |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringApplesProcessor
public SpringApplesProcessor()
instantiateController
protected AppleController instantiateController(String beanName,
ServiceManager sitemapManager)
throws AppleNotFoundException
- Overrides:
instantiateController
in class ApplesProcessor
- Throws:
AppleNotFoundException
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.