confused on how to setup projects [message #592171] |
Tue, 14 February 2006 21:52 |
Barry Kaplan Messages: 230 Registered: July 2009 |
Senior Member |
|
|
I have the following projects:
P1 - contains the aspect below
P2 - contains the class annotated with @Configurable
hibernate.jar - also needs to be weaved (I guess)
For this scenario, what are the AJDT project settings to get a static compile. (I can get load time working just fine, but can't for the life of me figure out how to setup the projects).
thanks!!!!
----
My aspect is:
@Aspect
public class HibernateAwareAnnotationBeanConfigurerAspect extends BeanConfigurerSupport {
@Pointcut(" initialization((@org.springframework.beans.factory.annotatio n.Configurable *).new(..)) && this(beanInstance)")
void beanCreation(Object beanInstance) {}
@Pointcut("execution(* org.hibernate.engine.UnsavedValueFactory.instantiate(..))")
void hibernateUnsavedValueFactory() {}
@AfterReturning("beanCreation(beanInstance) && !cflow(hibernateUnsavedValueFactory())")
public void configure(Object beanInstance) {
configureBean(beanInstance);
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.02010 seconds