br.com.arsmachina.example.ioc
Class MainConfiguration

java.lang.Object
  extended by br.com.arsmachina.example.ioc.MainConfiguration

public class MainConfiguration
extends Object

Main configuration class for Spring JavaConfig. It just imports the other configuration classes.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
MainConfiguration()
           
 
Method Summary
 org.hibernate.SessionFactory sessionFactory()
          Declares a sessionFactory bean, defined elsewhere.
 TaskController taskController()
          Declares the taskController bean.
 TaskDAO taskDAO()
          Declares the taskDAO bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainConfiguration

public MainConfiguration()
Method Detail

taskDAO

public TaskDAO taskDAO()
Declares the taskDAO bean.

Returns:
a TaskDAO.

taskController

public TaskController taskController()
Declares the taskController bean.

Returns:
a TaskController.

sessionFactory

public org.hibernate.SessionFactory sessionFactory()
Declares a sessionFactory bean, defined elsewhere.

Returns:
a SessionFactory.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.