synchronized (ContainerCache.mapLock)
{
ContainerCache cache = ContainerCache.initialise(manager, clazz, metaData, true);
advisor = cache.getAdvisor();
}
ReflectiveAspectBinder binder = new ReflectiveAspectBinder(clazz, advisor);
ArrayList<DependencyBuilderListItem> depends = new ArrayList<DependencyBuilderListItem>();
if (bypassAOP(beanInfo, metaData, DisabledType.POINTCUTS) == false)
{
Set aspects = binder.getAspects();
if (aspects != null && aspects.size() > 0)
{
Iterator it = aspects.iterator();
while (it.hasNext())
{
AspectDefinition def = (AspectDefinition) it.next();
if (def instanceof ManagedAspectDefinition)
{
String name = ((ManagedAspectDefinition)def).getDependentAspectName();
if (name != null)
{
depends.add(new AspectDependencyBuilderListItem(name));
}
}
}
}
}
if (bypassAOP(beanInfo, metaData, DisabledType.LIFECYCLE) == false)
{
Map<Object, Set<LifecycleCallbackDefinition>> lifecycleCallbacks = binder.getLifecycleCallbacks();
if (lifecycleCallbacks != null && lifecycleCallbacks.size() > 0)
{
for (Entry<Object, Set<LifecycleCallbackDefinition>> states : lifecycleCallbacks.entrySet())
{
for (LifecycleCallbackDefinition callback : states.getValue())