Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Injecting a component in a non-spring environment

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.


Back to the top