Search in sources :

Example 1 with AdvisedSupport

use of org.springframework.aop.framework.AdvisedSupport in project spring-framework by spring-projects.

the class Jaxb2RootElementHttpMessageConverterTests method setUp.

@Before
public void setUp() {
    converter = new Jaxb2RootElementHttpMessageConverter();
    rootElement = new RootElement();
    DefaultAopProxyFactory proxyFactory = new DefaultAopProxyFactory();
    AdvisedSupport advisedSupport = new AdvisedSupport();
    advisedSupport.setTarget(rootElement);
    advisedSupport.setProxyTargetClass(true);
    AopProxy proxy = proxyFactory.createAopProxy(advisedSupport);
    rootElementCglib = (RootElement) proxy.getProxy();
}
Also used : XmlRootElement(javax.xml.bind.annotation.XmlRootElement) AopProxy(org.springframework.aop.framework.AopProxy) DefaultAopProxyFactory(org.springframework.aop.framework.DefaultAopProxyFactory) AdvisedSupport(org.springframework.aop.framework.AdvisedSupport) Before(org.junit.Before)

Aggregations

XmlRootElement (javax.xml.bind.annotation.XmlRootElement)1 Before (org.junit.Before)1 AdvisedSupport (org.springframework.aop.framework.AdvisedSupport)1 AopProxy (org.springframework.aop.framework.AopProxy)1 DefaultAopProxyFactory (org.springframework.aop.framework.DefaultAopProxyFactory)1