PDA

View Full Version : Passing properties to DynamicIntroductionAdvise


tentacle
Dec 2nd, 2004, 06:06 PM
When creating a DynamicIntroductionAdvise/advisor pair using DefaultIntroductionAdvisor, how can I set properties on the advise other than through its constructor. I prefer properties over constructor arguments.

DefaultInstroductionAdvisor offers no properties to pass the DynamicIntroductionAdvise and interface class, so to my understanding the advise has to be created like this:

public class MyAdvisor extends DefaultIntroductionAdvisor {
public MyAdvisor() {
super(new MyDelegatingIntroductionInterceptor(), MyInterface.class);
}
}