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 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-2012. All Rights Reserved.