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

java.lang.Object
  extended byorg.apache.xbean.server.spring.configuration.SpringConfiguration

public class SpringConfiguration
extends java.lang.Object

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

Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom

Constructor Summary
SpringConfiguration(org.apache.xbean.spring.context.SpringApplicationContext 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.
 java.lang.String getId()
          Gets the unique identifier of this configuration.
 java.util.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.apache.xbean.spring.context.SpringApplicationContext applicationContext,
                           org.apache.xbean.kernel.Kernel kernel)
                    throws java.lang.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:
java.lang.Exception - if a problem occurs while registering the services from the application context
Method Detail

getId

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

Returns:
the unique identifier of this configuration

getServiceFactories

public java.util.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.



Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.