Skip to content

Instantly share code, notes, and snippets.

@nschlimm
Created July 30, 2011 12:14
Show Gist options
  • Save nschlimm/1115465 to your computer and use it in GitHub Desktop.
Save nschlimm/1115465 to your computer and use it in GitHub Desktop.
Spring-CDI decorator application context
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"
default-autowire="byName">
<context:component-scan base-package="com.mycompany.springapp.springcdi" scoped-proxy="targetClass">
<context:include-filter type="annotation" expression="javax.decorator.Decorator" />
</context:component-scan>
<bean class="com.schlimm.springcdi.decorator.DecoratorAwareBeanFactoryPostProcessor" />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment