org.apache.cocoon.servletservice.spring
Class ServletFactoryBean

java.lang.Object
  extended byorg.apache.cocoon.servletservice.spring.ServletFactoryBean
All Implemented Interfaces:
ApplicationContextAware, BeanNameAware, FactoryBean, ServletContextAware

public class ServletFactoryBean
extends Object
implements FactoryBean, ApplicationContextAware, ServletContextAware, BeanNameAware

Since:
1.0.0
Version:
$Id: ServletFactoryBean.java 647590 2008-04-13 17:13:54Z gkossakowski $

Constructor Summary
ServletFactoryBean()
           
 
Method Summary
 void destroy()
           
 Object getObject()
           
 Class getObjectType()
           
 void init()
           
 boolean isSingleton()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setBeanName(String beanName)
           
 void setConnections(Map connections)
           
 void setConnectionServiceNames(Map connectionServiceNames)
           
 void setContextParams(Map contextParams)
           
 void setContextPath(String contextPath)
          The path to the blocks resources relative to the servlet context URL, must start with an '/'.
 void setEmbeddedServlet(Servlet embeddedServlet)
           
 void setInitParams(Map initParams)
           
 void setMountPath(String mountPath)
           
 void setServiceName(String name)
           
 void setServletContext(ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletFactoryBean

public ServletFactoryBean()
Method Detail

init

public void init()
          throws Exception
Throws:
Exception

destroy

public void destroy()

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

setServletContext

public void setServletContext(ServletContext servletContext)
Specified by:
setServletContext in interface ServletContextAware

setBeanName

public void setBeanName(String beanName)
Specified by:
setBeanName in interface BeanNameAware

setEmbeddedServlet

public void setEmbeddedServlet(Servlet embeddedServlet)
Parameters:
embeddedServlet - the embeddedServlet to set

setMountPath

public void setMountPath(String mountPath)
Parameters:
mountPath -

setContextPath

public void setContextPath(String contextPath)
The path to the blocks resources relative to the servlet context URL, must start with an '/'.

Parameters:
contextPath -

setInitParams

public void setInitParams(Map initParams)
Parameters:
initParams -

setContextParams

public void setContextParams(Map contextParams)
Parameters:
contextParams - the contextParams to set

setConnections

public void setConnections(Map connections)
Parameters:
connections -

setConnectionServiceNames

public void setConnectionServiceNames(Map connectionServiceNames)
Parameters:
connectionServiceNames -

setServiceName

public void setServiceName(String name)

getObject

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

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean


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