org.apache.cocoon.core.container.spring.avalon
Class AvalonContextFactoryBean

java.lang.Object
  extended byorg.apache.cocoon.core.container.spring.avalon.AvalonContextFactoryBean
All Implemented Interfaces:
FactoryBean, ServletContextAware

public class AvalonContextFactoryBean
extends Object
implements FactoryBean, ServletContextAware

This factory bean sets up the Avalon Context object. It is part of the Spring bridge for Avalon integration.

Since:
2.2
Version:
$Id: AvalonContextFactoryBean.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  Context context
          The Avalon context.
protected  ServletContext servletContext
          The servlet context.
protected  org.apache.cocoon.configuration.Settings settings
          The settings.
 
Constructor Summary
AvalonContextFactoryBean()
           
 
Method Summary
 Object getObject()
           
 Class getObjectType()
           
protected  void init()
          Create the Avalon context object.
 boolean isSingleton()
           
 void setServletContext(ServletContext sContext)
           
 void setSettings(org.apache.cocoon.configuration.Settings settings)
          Inject the settings object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletContext

protected ServletContext servletContext
The servlet context.


settings

protected org.apache.cocoon.configuration.Settings settings
The settings.


context

protected Context context
The Avalon context.

Constructor Detail

AvalonContextFactoryBean

public AvalonContextFactoryBean()
Method Detail

setServletContext

public void setServletContext(ServletContext sContext)
Specified by:
setServletContext in interface ServletContextAware
See Also:
ServletContextAware.setServletContext(javax.servlet.ServletContext)

init

protected void init()
             throws Exception
Create the Avalon context object.

Throws:
Exception

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception
See Also:
FactoryBean.getObject()

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean
See Also:
FactoryBean.getObjectType()

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean
See Also:
FactoryBean.isSingleton()

setSettings

public void setSettings(org.apache.cocoon.configuration.Settings settings)
Inject the settings object.

Parameters:
settings - The settings.


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.