Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (27 sloc) 1.29 KB
<?xml version="1.0"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="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
">
<!--<import resource="classpath*:context/common.xml" />-->
<!--Not Working-->
<!--<context:component-scan base-package="com.osgi.spring" />-->
<bean class="com.osgi.spring.PortletViewController"/>
<bean name="gsonbean" class="com.google.gson.Gson" />
<bean name="portletHandlerInterceptor" class="com.osgi.spring.interceptor.MyPortletInterceptor">
<property name="gson" ref="gsonbean" />
</bean>
<!-- Handler mappings for annotation based controllers -->
<bean class="org.springframework.web.portlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<property name="interceptors">
<list>
<ref bean="portletHandlerInterceptor"/>
</list>
</property>
</bean>
<bean class="org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
</beans>