org.wamblee.ioc
Class BeanKernel

java.lang.Object
  extended by org.wamblee.ioc.BeanKernel

public final class BeanKernel
extends Object

The standard means to obtain the bean factory. This works by reading a property from a property file named from the class path. This property identifies the bean factory implementation to use. The configured bean factory must have a no-arg constructor.


Method Summary
static BeanFactory getBeanFactory()
          Gets the bean factory.
static void overrideBeanFactory(BeanFactory aOverride)
          Overrides the default mechanism for looking up the bean factory by specifying it yourself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

overrideBeanFactory

public static void overrideBeanFactory(BeanFactory aOverride)
Overrides the default mechanism for looking up the bean factory by specifying it yourself.

Parameters:
aOverride - Override bean factory.

getBeanFactory

public static BeanFactory getBeanFactory()
Gets the bean factory.

Returns:
Bean factory.


Copyright © 2011. All Rights Reserved.