I added/changed three things in Apples:
- Apples can be Spring beans. In order to lookup a bean, prepand #, e.g. to
lookup a bean of name 'myBean', use <map:call function="#myBean"/>.
- Add an AppleNotFoundException which informs why an Apple can't be
initialized.
- Add sendStatus() to the AppleResponse interface.
Comments?
Carsten, may you have a look at
http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-apples/cocoon-apples-impl/src/main/java/org/apache/cocoon/components/flow/apples/ApplesProcessor.java?
I'm not sure about
sitemapManager = (ServiceManager)
avalonContext.get(ContextHelper.CONTEXT_SITEMAP_SERVICE_MANAGER);
and
LifecycleHelper.setupComponent(app, getLogger(), appleContext, sitemapManager,
null, true);
as both statements use deprecated code.
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------