org.tubo.kernel
Class KernelFactory

java.lang.Object
  extended by org.tubo.kernel.KernelFactory

public class KernelFactory
extends java.lang.Object

This class create the base kernel creational steps.
The role of this class is create and load ConfigManagerset, and the set environment for KernelBuilder

Created: Aug 30, 2006, 4:54:32 PM
Last Modification Date: $Date: 2006-12-15 18:06:36 -0300 (Fri, 15 Dec 2006) $

Version:
$Revision: 74 $
Author:
maldito_orco (maldito_orco@users.sourceforge.net)

Field Summary
static java.lang.String BASE_CONFIG_LOCATION
          Constant with base configuration location
static java.lang.String RCS_ID
           
 
Constructor Summary
KernelFactory()
           
 
Method Summary
 void appendConfigLocation(java.lang.String configLocation)
          Add configurations to kernel
 Kernel createKernel()
          This class create the base kernel creational steps.
 java.lang.String getBaseConfigLocation()
          Get base configuration location
static KernelFactory getInstance()
          Class method to create a new default KernelFactory implementation
 void setBaseConfigLocation(java.lang.String baseConfigLocation)
          Change default base configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

BASE_CONFIG_LOCATION

public static final java.lang.String BASE_CONFIG_LOCATION
Constant with base configuration location

See Also:
Constant Field Values
Constructor Detail

KernelFactory

public KernelFactory()
Method Detail

getInstance

public static KernelFactory getInstance()
Class method to create a new default KernelFactory implementation

Returns:
a KernelFactory

getBaseConfigLocation

public java.lang.String getBaseConfigLocation()
Get base configuration location

Returns:
the base tubo configuration

setBaseConfigLocation

public void setBaseConfigLocation(java.lang.String baseConfigLocation)
Change default base configuration

Parameters:
baseConfigLocation - A location

appendConfigLocation

public void appendConfigLocation(java.lang.String configLocation)
Add configurations to kernel

Parameters:
configLocation - Configuration URL

createKernel

public Kernel createKernel()
                    throws TuboKernelException
This class create the base kernel creational steps. The role of this inheritance is set the environment for Builder

Returns:
New Kernel instance
Throws:
TuboKernelException - If somthing fail


Copyright © 2004-2007 Tubo. All Rights Reserved.