mcconnell 2003/03/06 01:17:42
Modified: merlin/src/java/org/apache/avalon/merlin/kernel/impl
KernelLoader.java
Log:
Add accessor to the kernel established by the loader. This will be reviews shortly
as part of the inclusion of block addition and retraction from the kernel (as opposed
to the current kernel + root block lockin).
Revision Changes Path
1.6 +9 -0
avalon-sandbox/merlin/src/java/org/apache/avalon/merlin/kernel/impl/KernelLoader.java
Index: KernelLoader.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/merlin/src/java/org/apache/avalon/merlin/kernel/impl/KernelLoader.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- KernelLoader.java 16 Feb 2003 13:01:20 -0000 1.5
+++ KernelLoader.java 6 Mar 2003 09:17:42 -0000 1.6
@@ -150,6 +150,15 @@
}
}
+ public Object getKernel()
+ {
+ if( m_kernel == null )
+ {
+ throw new IllegalStateException( "Kernel has not been initialized.");
+ }
+ return m_kernel;
+ }
+
private Configuration getKernelConfiguration( final File file )
throws ConfigurationException, IOException, SAXException
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]