org.apache.cocoon.servletservice.spring
Class ServletFactoryBean
java.lang.Object
org.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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletFactoryBean
public ServletFactoryBean()
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.