jboynes 2004/01/23 08:45:48
Modified: modules/kernel/src/java/org/apache/geronimo/kernel
Kernel.java
Log:
Wrap the install method from the config store so people only have to use the
kernel
Revision Changes Path
1.9 +14 -1
incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java
Index: Kernel.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Kernel.java 22 Jan 2004 20:58:40 -0000 1.8
+++ Kernel.java 23 Jan 2004 16:45:48 -0000 1.9
@@ -166,6 +166,19 @@
}
/**
+ * Install the CAR at the supplied URL into this kernel's store
+ * @param source the URL of a CAR format archive
+ * @throws java.io.IOException if the CAR could not be read
+ * @throws org.apache.geronimo.kernel.config.InvalidConfigException if
there is a configuration problem with the CAR
+ */
+ public void install(URL source) throws IOException,
InvalidConfigException {
+ if (store == null) {
+ throw new UnsupportedOperationException("Kernel does not have a
ConfigurationStore");
+ }
+ store.install(source);
+ }
+
+ /**
* Load the specified Configuration from the store into this Kernel
* @param configID the unique id of the Configuration to load
* @return the JMX ObjectName the Kernel registered the Configuration
under