org.apache.xbean.server.loader
Interface Loader

All Known Implementing Classes:
PureSpringLoader, SpringLoader

public interface Loader

Loaders load configurations into a Kernel.

Since:
2.0
Author:
Dain Sundstrom

Method Summary
 org.apache.xbean.kernel.Kernel getKernel()
          Gets the kernel in which configuraitons are loaded.
 org.apache.xbean.kernel.ServiceName load(String location)
          Loads the specified configuration into the kernel.
 

Method Detail

getKernel

org.apache.xbean.kernel.Kernel getKernel()
Gets the kernel in which configuraitons are loaded.

Returns:
the kernel in which configurations are loaded

load

org.apache.xbean.kernel.ServiceName load(String location)
                                         throws Exception
Loads the specified configuration into the kernel. The location passed to this method is specific loader implementation. It is important to remember that a loader only loads the configuration into the kernel and does not start the configuration.

Parameters:
location - the location of the configuration
Returns:
the service name of the configuration added to the kernel
Throws:
Exception - if a problem occurs while loading the configuration


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