oemware.core
Class Kernel

java.lang.Object
  extended by oemware.core.Kernel

public final class Kernel
extends java.lang.Object

The kernel object. This must be initialized by passing in the service context.


Field Summary
static java.lang.String KERNEL_CONTEXT
           
 
Method Summary
static org.springframework.context.support.GenericApplicationContext context()
          Returns the Spring context object.
static java.lang.Object findComponent(java.lang.String pComponentId)
          Lookup a component.
 org.springframework.context.support.GenericApplicationContext getContext()
          Returns the context.
static void init(org.springframework.context.support.GenericApplicationContext pContext)
          The init method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KERNEL_CONTEXT

public static final java.lang.String KERNEL_CONTEXT
See Also:
Constant Field Values
Method Detail

getContext

public final org.springframework.context.support.GenericApplicationContext getContext()
Returns the context.

Returns:
THe context.

context

public static final org.springframework.context.support.GenericApplicationContext context()
Returns the Spring context object.

Returns:
The context.

findComponent

public static final java.lang.Object findComponent(java.lang.String pComponentId)
                                            throws ServiceException
Lookup a component.

Parameters:
pComponentId - The component id.
Returns:
The component. An exception is thrown if the component isn't found. isn't found.
Throws:
ServiceException

init

public static void init(org.springframework.context.support.GenericApplicationContext pContext)
The init method. This method must be called before using the object.

Parameters:
pContext - The context.


Copyright © 2009 Deft Labs - Released under LGPL, Version 3.0