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

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

public class AvalonSitemapContextFactoryBean
extends Object
implements FactoryBean, BeanFactoryAware

This factory bean creates a context for a sitemap. It is part of the Spring bridge for Avalon integration.

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

Field Summary
protected  BeanFactory beanFactory
          The bean factory.
protected  Context context
          The Avalon context.
protected  String uriPrefix
          Environment uri prefix.
 
Constructor Summary
AvalonSitemapContextFactoryBean()
           
 
Method Summary
 Object getObject()
           
 Class getObjectType()
           
protected  void init()
          Create the Avalon context object.
 boolean isSingleton()
           
 void setBeanFactory(BeanFactory factory)
           
 void setUriPrefix(String uriPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
The Avalon context.


beanFactory

protected BeanFactory beanFactory
The bean factory.


uriPrefix

protected String uriPrefix
Environment uri prefix.

Constructor Detail

AvalonSitemapContextFactoryBean

public AvalonSitemapContextFactoryBean()
Method Detail

setUriPrefix

public void setUriPrefix(String uriPrefix)

setBeanFactory

public void setBeanFactory(BeanFactory factory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException
See Also:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)

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()


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