org.apache.xbean.server.spring.configuration
Class SpringConfiguration

java.lang.Object
  extended by org.apache.xbean.server.spring.configuration.SpringConfiguration

public class SpringConfiguration
extends Object

SpringConfiguration that registers and unregisters services that have been defined in a Spring ApplicationContext.

Since:
2.0
Author:
Dain Sundstrom

Constructor Summary
SpringConfiguration(org.springframework.context.support.AbstractXmlApplicationContext applicationContext, org.apache.xbean.kernel.Kernel kernel)
          Creates a SpringConfiguration that registers and unregisters services that have been defined in a Spring ApplicationContext.
 
Method Summary
 void destroy()
          Unregisters all of the services registered with the kernel in the constructor.
protected static ClassLoader getClassLoader(org.springframework.context.support.AbstractXmlApplicationContext applicationContext)
           
 String getId()
          Gets the unique identifier of this configuration.
 Map getServiceFactories()
          Gets the service factories for the services defined in this configuration by ServiceName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringConfiguration

public SpringConfiguration(org.springframework.context.support.AbstractXmlApplicationContext applicationContext,
                           org.apache.xbean.kernel.Kernel kernel)
                    throws Exception
Creates a SpringConfiguration that registers and unregisters services that have been defined in a Spring ApplicationContext.

Parameters:
applicationContext - the application context from which services are registered
kernel - the kernel in which services are registered and unregistered
Throws:
Exception - if a problem occurs while registering the services from the application context
Method Detail

getId

public String getId()
Gets the unique identifier of this configuration.

Returns:
the unique identifier of this configuration

getServiceFactories

public Map getServiceFactories()
Gets the service factories for the services defined in this configuration by ServiceName.

Returns:
the service factories for the services defined in this configuration by ServiceName

destroy

public void destroy()
Unregisters all of the services registered with the kernel in the constructor.


getClassLoader

protected static ClassLoader getClassLoader(org.springframework.context.support.AbstractXmlApplicationContext applicationContext)


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.