org.apache.fulcrum.spring
Class SpringFrameworkServiceImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.fulcrum.spring.SpringFrameworkServiceImpl
All Implemented Interfaces:
org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.ServiceManager, SpringFrameworkService

public class SpringFrameworkServiceImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements SpringFrameworkService, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.service.ServiceManager

Starts an instance of the Spring Service Framework as Avalon service.

Author:
Siegfried Goeschl

Constructor Summary
SpringFrameworkServiceImpl()
          Constructor
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void dispose()
           
 org.springframework.context.support.AbstractApplicationContext getAbstractApplicationContext()
           
 boolean hasService(String key)
           
 void initialize()
           
 Object lookup(String key)
           
 void release(Object o)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringFrameworkServiceImpl

public SpringFrameworkServiceImpl()
Constructor

Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

initialize

public void initialize()
                throws Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
Exception
See Also:
Initializable.initialize()

dispose

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

getAbstractApplicationContext

public org.springframework.context.support.AbstractApplicationContext getAbstractApplicationContext()
Specified by:
getAbstractApplicationContext in interface SpringFrameworkService
Returns:
the underlying Spring container
See Also:
SpringFrameworkService.getAbstractApplicationContext()

lookup

public Object lookup(String key)
              throws org.apache.avalon.framework.service.ServiceException
Specified by:
lookup in interface org.apache.avalon.framework.service.ServiceManager
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
ServiceManager.lookup(String)

hasService

public boolean hasService(String key)
Specified by:
hasService in interface org.apache.avalon.framework.service.ServiceManager
See Also:
ServiceManager.hasService(String)

release

public void release(Object o)
Specified by:
release in interface org.apache.avalon.framework.service.ServiceManager
See Also:
ServiceManager.release(Object)


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