You are on page 1of 2

<?xml version="1.0" encoding="UTF-8"?

>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">

<context:component-scan base-package="com.ceelive.controller" />

<!-- DispatcherServlet Context: defines this servlet's request-processing


infrastructure -->

<!-- Enables the Spring MVC @Controller programming model -->


<annotation-driven />

<!-- Handles HTTP GET requests for /resources/** by efficiently serving up


static resources in the ${webappRoot}/resources directory -->
<resources mapping="/resources/**" location="/resources/" />

<!-- Event Dao Bean -->


<beans:bean id="eventDao" class="com.ceelive.dao.manager.event.EventDaoImpl">
</beans:bean>
<!-- Artist Dao Bean -->
<beans:bean id="artistDao"
class="com.ceelive.dao.manager.artist.ArtistDaoImpl">
</beans:bean>
<!-- Event Service Bean -->
<beans:bean id="eventService"
class="com.ceelive.service.event.EventServiceImpl">
<beans:property name="eventDao" ref="eventDao"></beans:property>
</beans:bean>
<!-- Artist Service Bean -->
<beans:bean id="artistService"
class="com.ceelive.service.artist.ArtistServiceImpl">
<beans:property name="artistDao" ref="artistDao"></beans:property>
</beans:bean>
<!-- Event Controller Bean -->
<beans:bean id="eventController"
class="com.ceelive.controller.EventController">
<beans:property name="eventService" ref="eventService"></beans:property>
<beans:property name="beanUtil" ref="beanUtil"></beans:property>
</beans:bean>
<!-- Artist Controller Bean -->
<beans:bean id="artistController"
class="com.ceelive.controller.ArtistController">
<beans:property name="artistService" ref="artistService"></beans:property>
<beans:property name="beanUtil" ref="beanUtil"></beans:property>
</beans:bean>
<!-- BeanUtil bean -->
<beans:bean id="beanUtil" class="com.ceelive.utility.BeanUtil">
<!-- HibernateConfiguration bean -->
</beans:bean>
<beans:bean id="hibernateConfiguration"
class="com.ceelive.configuration.HibernateConfiguration">
</beans:bean>
<!-- Resolves views selected for rendering by @Controllers to .jsp resources in
the /WEB-INF/views directory -->
<beans:bean id="tilesConfigurer"
class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
<beans:property name="definitions">
<beans:list>
<beans:value>/WEB-INF/tiles.xml</beans:value>
</beans:list>
</beans:property>
</beans:bean>
<beans:bean id="ti

You might also like