This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.springapp.springcdi; | |
import javax.decorator.Decorator; | |
import javax.decorator.Delegate; | |
@Decorator | |
public class MyServiceSecurityDecorator implements MyService { | |
@Delegate | |
private MyService delegate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.springapp.springcdi; | |
import javax.decorator.Decorator; | |
import javax.decorator.Delegate; | |
@Decorator | |
public class MyServiceTransactionDecorator implements MyService{ | |
@Delegate | |
private MyService delegate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.springapp.springcdi; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.test.context.ContextConfiguration; | |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; | |
@ContextConfiguration("/test-decorator-context.xml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.context.annotation.Scope; | |
@Scope("session") | |
public class UserCredentials { | |
... | |
} | |
import org.springframework.context.annotation.Scope; | |
@Scope("singleton") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.enterprise.context.SessionScoped; | |
@SessionScoped | |
public class UserCredentials implements Serializable { | |
/** | |
* Unique ID | |
*/ | |
private static final long serialVersionUID = 8825296584100263935L; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<web-app> | |
... | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
</listener> | |
... | |
</web-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans> | |
<context:component-scan base-package="com.mycompany.springapp" scoped-proxy="targetClass"/> | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans> | |
... | |
<context:component-scan base-package="com.schlimm.springcdi.interceptor.simple" scoped-proxy="targetClass"> | |
<context:include-filter type="annotation" expression="javax.interceptor.Interceptor" /> | |
</context:component-scan> | |
<bean class="com.schlimm.springcdi.interceptor.InterceptorAwareBeanFactoryPostProcessor"/> | |
... | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean class="com.schlimm.springcdi.interceptor.InterceptorAwareBeanFactoryPostProcessor"> | |
<property name="interceptorOrder"> | |
<list> | |
<value>com.schlimm.springcdi.interceptor.ct._91_C1.interceptors.TransactionInterceptor</value> | |
<value>com.schlimm.springcdi.interceptor.ct._92_C1.interceptors.OldSecurityInterceptor</value> | |
<value>com.schlimm.springcdi.interceptor.ct._92_C1.interceptors.VIPSecurityInterceptor</value> | |
<value>com.schlimm.springcdi.interceptor.ct._92_C1.interceptors.SecurityInterceptor</value> | |
</list> | |
</property> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HTMLDocumentGenerator implements DocumentGenerator, Initialisierbar, Reinitialisierbar, HTMLDocumentGeneratorMBean { | |
private final ConcurrentHashMap<String, ConcurrentTransformer> transformerCache = | |
new ConcurrentHashMap<String, ConcurrentTransformer>(); | |
private int concurrentParserThreadCount = 10; | |
protected Semaphore bouncer; | |
... | |
public void createDocument(OutputStream document, Map<String, ?> inputData) throws DocumentGeneratorAusnahme { |