org.apache.geronimo.kernel.config
Class ConfigurationUtil

java.lang.Object
  extended by org.apache.geronimo.kernel.config.ConfigurationUtil

public final class ConfigurationUtil
extends Object


Method Summary
static ConfigurationMarshaler createConfigurationMarshaler(String marshalerClass)
           
static ConfigurationManager getConfigurationManager(Kernel kernel)
          Gets a reference or proxy to the ConfigurationManager running in the specified kernel.
static AbstractName getConfigurationManagerName(Kernel kernel)
          Gets the name of the ConfigurationManager running in the specified kernel.
static EditableConfigurationManager getEditableConfigurationManager(Kernel kernel)
          Gets a reference or proxy to an EditableConfigurationManager running in the specified kernel, if there is one.
static AbstractName loadBootstrapConfiguration(Kernel kernel, ConfigurationData configurationData, ClassLoader classLoader)
           
static AbstractName loadBootstrapConfiguration(Kernel kernel, ConfigurationData configurationData, ClassLoader classLoader, boolean enableBootRepo)
           
static AbstractName loadBootstrapConfiguration(Kernel kernel, InputStream in, ClassLoader classLoader)
           
static AbstractName loadBootstrapConfiguration(Kernel kernel, InputStream in, ClassLoader classLoader, boolean enableBootRepo)
           
static GBeanState newGBeanState(Collection gbeans)
           
static ConfigurationData readConfigurationData(InputStream in)
           
static ConfigurationInfo readConfigurationInfo(InputStream in, AbstractName storeName, File inPlaceLocation)
           
static void releaseConfigurationManager(Kernel kernel, ConfigurationManager configurationManager)
           
static void writeConfigInfo(PrintWriter writer, ConfigurationData configurationData)
           
static void writeConfigurationData(ConfigurationData configurationData, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createConfigurationMarshaler

public static ConfigurationMarshaler createConfigurationMarshaler(String marshalerClass)
                                                           throws Exception
Throws:
Exception

newGBeanState

public static GBeanState newGBeanState(Collection gbeans)

loadBootstrapConfiguration

public static AbstractName loadBootstrapConfiguration(Kernel kernel,
                                                      InputStream in,
                                                      ClassLoader classLoader)
                                               throws Exception
Throws:
Exception

loadBootstrapConfiguration

public static AbstractName loadBootstrapConfiguration(Kernel kernel,
                                                      InputStream in,
                                                      ClassLoader classLoader,
                                                      boolean enableBootRepo)
                                               throws Exception
Throws:
Exception

loadBootstrapConfiguration

public static AbstractName loadBootstrapConfiguration(Kernel kernel,
                                                      ConfigurationData configurationData,
                                                      ClassLoader classLoader)
                                               throws Exception
Throws:
Exception

loadBootstrapConfiguration

public static AbstractName loadBootstrapConfiguration(Kernel kernel,
                                                      ConfigurationData configurationData,
                                                      ClassLoader classLoader,
                                                      boolean enableBootRepo)
                                               throws Exception
Throws:
Exception

writeConfigurationData

public static void writeConfigurationData(ConfigurationData configurationData,
                                          OutputStream out)
                                   throws IOException
Throws:
IOException

readConfigurationData

public static ConfigurationData readConfigurationData(InputStream in)
                                               throws IOException,
                                                      ClassNotFoundException
Throws:
IOException
ClassNotFoundException

writeConfigInfo

public static void writeConfigInfo(PrintWriter writer,
                                   ConfigurationData configurationData)

readConfigurationInfo

public static ConfigurationInfo readConfigurationInfo(InputStream in,
                                                      AbstractName storeName,
                                                      File inPlaceLocation)
                                               throws IOException
Throws:
IOException

getConfigurationManagerName

public static AbstractName getConfigurationManagerName(Kernel kernel)
Gets the name of the ConfigurationManager running in the specified kernel.

Returns:
Its AbstractName
Throws:
IllegalStateException - Occurs if a ConfigurationManager cannot be identified

getConfigurationManager

public static ConfigurationManager getConfigurationManager(Kernel kernel)
Gets a reference or proxy to the ConfigurationManager running in the specified kernel.

Returns:
The ConfigurationManager
Throws:
IllegalStateException - Occurs if a ConfigurationManager cannot be identified

getEditableConfigurationManager

public static EditableConfigurationManager getEditableConfigurationManager(Kernel kernel)
Gets a reference or proxy to an EditableConfigurationManager running in the specified kernel, if there is one.

Returns:
The EdtiableConfigurationManager, or none if there is not one available.
Throws:
IllegalStateException - Occurs if there are multiple EditableConfigurationManagers in the kernel.

releaseConfigurationManager

public static void releaseConfigurationManager(Kernel kernel,
                                               ConfigurationManager configurationManager)


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.