public class ServletContextAttributeExporter extends Object implements Service, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
appCtx
Application context into which we're loaded.
|
private Collection<String> |
exportedBeans
ID of beans exported into the servlet context.
|
private String |
id
ID of this service.
|
private boolean |
initialized
Whether this service has been initialized.
|
private org.slf4j.Logger |
log
Class logger.
|
| 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) |
private final org.slf4j.Logger log
private org.springframework.context.ApplicationContext appCtx
private String id
private boolean initialized
private Collection<String> exportedBeans
public ServletContextAttributeExporter(Collection<String> beans)
beans - ID of beans exported into the servlet contextpublic void destroy()
throws ServiceException
destroy in interface ServiceServiceException - thrown if there is a problem destroying the servicepublic String getId()
public void initialize()
throws ServiceException
initialize in interface ServiceServiceException - thrown if there is a problem initializing the servicepublic boolean isInitialized()
isInitialized in interface Servicepublic void setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic boolean isDestroyed()
isDestroyed in interface ServiceCopyright © 1999-2015. All Rights Reserved.