Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <source>1.6</source>
- <complianceLevel>1.6</complianceLevel>
- <verbose>true</verbose>
- <showWeaveInfo>true</showWeaveInfo>
- <outxml>true</outxml>
- <context:spring-configured />
- <context:component-scan base-package="com.myapp" />
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <compilerVersion>1.6</compilerVersion>
- <fork>true</fork>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>aspectj-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>compile</id>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <verbose>false</verbose>
- <outxml>true</outxml>
- <aspectLibraries>
- <aspectLibrary>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aspects</artifactId>
- </aspectLibrary>
- </aspectLibraries>
- </configuration>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- <execution>
- <id>test-compile</id>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <verbose>false</verbose>
- <aspectLibraries>
- <aspectLibrary>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aspects</artifactId>
- </aspectLibrary>
- </aspectLibraries>
- </configuration>
- <goals>
- <goal>test-compile</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjweaver</artifactId>
- <version>1.6.4</version>
- </dependency>
- </dependencies>
- </plugin>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aspects</artifactId>
- <scope>compile</scope>
- </dependency>
- <context:annotation-config/>
- <context:spring-configured/>
- <context:load-time-weaver/>
- <bean id="baseEntity" class="package.name.BaseEntity" scope="prototype">
- <property name="historyHandler" ref="historyHandler" />
- </bean>
- <bean id="historyHandler" class="package.name.HistoryJpaHandler" scope="prototype">
- <property name="historyDao" ref="historyDao" />
- </bean>
- <bean id="historyDao" class="package.name.HistoryJpaDao">
- <property name="entityManagerFactory" ref="entityManagerFactory" />
- </bean>
- @Configurable("baseEntity")
- public abstract class BaseEntity
- @Configurable("historyHandler")
- public class HistoryJpaHandler extends SessionEventAdapter implements HistoryHandler
- <JAVA_HOME>/bin/java -javaagent:/full/path/to/spring-agent-2.5.6.jar
Add Comment
Please, Sign In to add comment