|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fulcrum.spring.AvalonContainerBean
public abstract class AvalonContainerBean
Base class to create an Avalon container as Spring bean.
Constructor Summary | |
---|---|
AvalonContainerBean()
Constructor |
Method Summary | |
---|---|
protected org.apache.avalon.framework.logger.Logger |
createLogger()
Create the Avalon Logger to be used for the Avalon container. |
abstract void |
dispose()
Dispose the YAAFI container. |
org.springframework.beans.factory.BeanFactory |
getBeanFactory()
|
String |
getBeanName()
|
Map |
getDefaultContext()
Get the values for the custom Avalon context |
org.apache.avalon.framework.logger.Logger |
getLogger()
|
protected org.apache.avalon.framework.service.ServiceManager |
getServiceManager()
|
boolean |
hasService(String s)
|
abstract void |
initialize()
Initialize the instance. |
Object |
lookup(String s)
|
void |
release(Object o)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setBeanName(String name)
|
void |
setDefaultContext(Map defaultContext)
Allows setting a custom Avalon context. |
void |
setLogger(org.apache.avalon.framework.logger.Logger logger)
|
protected void |
setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvalonContainerBean()
Method Detail |
---|
public abstract void initialize() throws Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
Exception
- the initialization failedInitializable.initialize()
public abstract void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
Disposable.dispose()
public Object lookup(String s) throws org.apache.avalon.framework.service.ServiceException
lookup
in interface org.apache.avalon.framework.service.ServiceManager
org.apache.avalon.framework.service.ServiceException
ServiceManager.lookup(String)
public boolean hasService(String s)
hasService
in interface org.apache.avalon.framework.service.ServiceManager
ServiceManager.hasService(String)
public void release(Object o)
release
in interface org.apache.avalon.framework.service.ServiceManager
ServiceManager.release(Object)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
BeanNameAware.setBeanName(String)
public org.apache.avalon.framework.logger.Logger getLogger()
public void setLogger(org.apache.avalon.framework.logger.Logger logger)
logger
- The logger to set.public Map getDefaultContext()
public void setDefaultContext(Map defaultContext)
defaultContext
- The Avalon default context to setpublic String getBeanName()
public org.springframework.beans.factory.BeanFactory getBeanFactory()
protected org.apache.avalon.framework.logger.Logger createLogger()
protected org.apache.avalon.framework.service.ServiceManager getServiceManager()
protected void setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |