return hasInstanceAspects;
}
public void insertInterceptorStack(String stackName)
{
AdviceStack stack = AspectManager.instance().getAdviceStack(stackName);
if (stack == null) throw new RuntimeException("Stack " + stackName + " not found.");
ClassAdvisor classAdvisor = null;
if (getInstance() instanceof Advised)
{
Advised advised = (Advised) getInstance();
classAdvisor = ((ClassAdvisor) advised._getAdvisor());
}
int interceptorsAdded = 0;
for (InterceptorFactory factory : stack.getInterceptorFactories())
{
if (!factory.isDeployed()) continue;
Interceptor interceptor = factory.create(classAdvisor, null);
if (interceptor == null)
{