org.apache.fulcrum.spring
Class YaafiContainerBean

java.lang.Object
  extended by org.apache.fulcrum.spring.AvalonContainerBean
      extended by org.apache.fulcrum.spring.YaafiContainerBean
All Implemented Interfaces:
org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.service.ServiceManager, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware

public class YaafiContainerBean
extends AvalonContainerBean

A POJO starting/stopping the YAAFI container and exposing a ServiceManager. This allows to run an Avalon container within Spring and to lookup Avalon services using the exposed ServiceManager.

Author:
Siegfried Goeschl

Constructor Summary
YaafiContainerBean()
          Constructor
 
Method Summary
 void dispose()
          Dispose the YAAFI container.
 String getApplicationHome()
           
 String getContainerConfigValue()
           
 String getTempHome()
           
 void initialize()
          Initialize the instance.
 void setApplicationHome(String applicationHome)
           
 void setContainerConfigValue(String containerConfigValue)
           
 void setTempHome(String tempHome)
           
 String toString()
           
 
Methods inherited from class org.apache.fulcrum.spring.AvalonContainerBean
createLogger, getBeanFactory, getBeanName, getDefaultContext, getLogger, getServiceManager, hasService, lookup, release, setBeanFactory, setBeanName, setDefaultContext, setLogger, setServiceManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YaafiContainerBean

public YaafiContainerBean()
Constructor

Method Detail

initialize

public void initialize()
                throws Exception
Initialize the instance. This method must be configured using the 'init-method' attribute.

Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Specified by:
initialize in class AvalonContainerBean
Throws:
Exception - the initialization failed
See Also:
Initializable.initialize()

dispose

public void dispose()
Dispose the YAAFI container. This method must be configured using the 'destroy-method' attribute.

Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable
Specified by:
dispose in class AvalonContainerBean
See Also:
Disposable.dispose()

getApplicationHome

public String getApplicationHome()
Returns:
Returns the applicationHome.

setApplicationHome

public void setApplicationHome(String applicationHome)
Parameters:
applicationHome - The applicationHome to set.

getContainerConfigValue

public String getContainerConfigValue()
Returns:
Returns the containerConfigValue.

setContainerConfigValue

public void setContainerConfigValue(String containerConfigValue)
Parameters:
containerConfigValue - The containerConfigValue to set.

getTempHome

public String getTempHome()
Returns:
Returns the tempHome.

setTempHome

public void setTempHome(String tempHome)
Parameters:
tempHome - The tempHome to set.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.