For more clarity, here is the aspect code i was talking about:

public aspect BusinessRuleAspect 
{
        BusinessRuleManager businessRuleManager;
        
        public pointcut persistentObjectPropertySetter(PersistentObject
persistentObject) : execution(!@NoBusinessRuleTrigger void
com.fugro.gwf.domain.model.v0..set*(..)) && this(persistentObject);
        
        after(PersistentObject persistentObject) :
persistentObjectPropertySetter(persistentObject)
        {
                if(businessRuleManager!=null)
                {
                        businessRuleManager.execute(persistentObject,
thisJoinPoint.getSignature().getName());
                }
        }
}



--
View this message in context: 
http://aspectj.2085585.n4.nabble.com/Injecting-a-component-in-a-non-spring-environment-tp4651384p4651389.html
Sent from the AspectJ - users mailing list archive at Nabble.com.
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to