daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <source>1.6</source>
  2. <complianceLevel>1.6</complianceLevel>
  3. <verbose>true</verbose>
  4. <showWeaveInfo>true</showWeaveInfo>
  5. <outxml>true</outxml>
  6.    
  7. <context:spring-configured />
  8.  
  9.     <context:component-scan base-package="com.myapp" />
  10.    
  11. <plugin>
  12. <groupId>org.apache.maven.plugins</groupId>
  13. <artifactId>maven-compiler-plugin</artifactId>
  14. <configuration>
  15.     <compilerVersion>1.6</compilerVersion>
  16.     <fork>true</fork>
  17.     <source>1.6</source>
  18.     <target>1.6</target>
  19. </configuration>
  20. </plugin>
  21.  
  22. <plugin>
  23. <groupId>org.codehaus.mojo</groupId>
  24. <artifactId>aspectj-maven-plugin</artifactId>
  25. <executions>
  26.     <execution>
  27.         <id>compile</id>
  28.         <configuration>
  29.             <source>1.6</source>
  30.             <target>1.6</target>
  31.             <verbose>false</verbose>
  32.             <outxml>true</outxml>
  33.             <aspectLibraries>
  34.                 <aspectLibrary>
  35.                     <groupId>org.springframework</groupId>
  36.                     <artifactId>spring-aspects</artifactId>
  37.                 </aspectLibrary>
  38.             </aspectLibraries>
  39.         </configuration>
  40.         <goals>
  41.             <goal>compile</goal>
  42.         </goals>
  43.     </execution>
  44.     <execution>
  45.         <id>test-compile</id>
  46.         <configuration>
  47.             <source>1.6</source>
  48.             <target>1.6</target>
  49.             <verbose>false</verbose>
  50.             <aspectLibraries>
  51.                 <aspectLibrary>
  52.                     <groupId>org.springframework</groupId>
  53.                     <artifactId>spring-aspects</artifactId>
  54.                 </aspectLibrary>
  55.             </aspectLibraries>
  56.         </configuration>
  57.         <goals>
  58.             <goal>test-compile</goal>
  59.         </goals>
  60.     </execution>
  61. </executions>
  62. <dependencies>
  63.     <dependency>
  64.         <groupId>org.aspectj</groupId>
  65.         <artifactId>aspectjweaver</artifactId>
  66.         <version>1.6.4</version>
  67.     </dependency>
  68. </dependencies>
  69. </plugin>
  70.    
  71. <dependency>
  72.         <groupId>org.springframework</groupId>
  73.         <artifactId>spring-aspects</artifactId>
  74.         <scope>compile</scope>
  75.     </dependency>
  76.    
  77. <context:annotation-config/>
  78. <context:spring-configured/>
  79. <context:load-time-weaver/>
  80.  
  81. <bean id="baseEntity" class="package.name.BaseEntity" scope="prototype">
  82.   <property name="historyHandler" ref="historyHandler" />
  83. </bean>
  84.  
  85. <bean id="historyHandler" class="package.name.HistoryJpaHandler" scope="prototype">
  86.   <property name="historyDao" ref="historyDao" />
  87. </bean>
  88.  
  89. <bean id="historyDao" class="package.name.HistoryJpaDao">
  90.   <property name="entityManagerFactory" ref="entityManagerFactory" />
  91. </bean>
  92.    
  93. @Configurable("baseEntity")
  94. public abstract class BaseEntity
  95.  
  96. @Configurable("historyHandler")
  97. public class HistoryJpaHandler extends SessionEventAdapter implements HistoryHandler
  98.    
  99. <JAVA_HOME>/bin/java -javaagent:/full/path/to/spring-agent-2.5.6.jar
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top