public class ServletContextAttributeExporter extends Object implements Service, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware
Constructor and Description |
---|
ServletContextAttributeExporter(Collection<String> beans)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys a service, freeing any resources it may currently be using.
|
String |
getId()
Gets the ID of this service.
|
void |
initialize()
Initializes this service.
|
boolean |
isDestroyed()
Gets whether the service has been destroyed.
|
boolean |
isInitialized()
Gets whether the service is initialized and ready for use.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setBeanName(String name) |
public ServletContextAttributeExporter(Collection<String> beans)
beans
- ID of beans exported into the servlet contextpublic void destroy() throws ServiceException
destroy
in interface Service
ServiceException
- thrown if there is a problem destroying the servicepublic String getId()
public void initialize() throws ServiceException
initialize
in interface Service
ServiceException
- thrown if there is a problem initializing the servicepublic boolean isInitialized()
isInitialized
in interface Service
public void setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public boolean isDestroyed()
isDestroyed
in interface Service
Copyright © 1999–2014. All rights reserved.