org.jtheque.core.managers.beans.ioc
Interface IocContainer

All Known Implementing Classes:
SpringContainer

public interface IocContainer

An IoC container specification.

Author:
Baptiste Wicht

Method Summary
 void addBeansFile(java.lang.String file)
          Add a beans file.
 void destroy()
          Destroy the application context.
 org.springframework.context.ApplicationContext getApplicationContext()
          Return the application context.
 org.springframework.context.support.AbstractMessageSource getResourceBundle()
          Return the resource bundle of the IoC container.
 void inject(java.lang.Object bean)
          Inject the dependancies into the object.
 void loadContext()
          Load the context.
 

Method Detail

getResourceBundle

org.springframework.context.support.AbstractMessageSource getResourceBundle()
Return the resource bundle of the IoC container.

Returns:
The ressource bundle of the container.

getApplicationContext

org.springframework.context.ApplicationContext getApplicationContext()
Return the application context.

Returns:
The Spring application context.

loadContext

void loadContext()
Load the context.


destroy

void destroy()
Destroy the application context.


inject

void inject(java.lang.Object bean)
Inject the dependancies into the object. A dependency is habitually declared with the Resource annotation. If the class has been annoted with AfterInject, the method will be invoked after the injection.

Parameters:
bean - The object to inject dependencies into

addBeansFile

void addBeansFile(java.lang.String file)
Add a beans file.

Parameters:
file - The beans file to add.


Copyright © 2009 JTheque. All Rights Reserved.