Beispiel #1
0
        protected void AddDefaultChildBehavior(Type behaviorType)
        {
            IBytecodeBehavior behavior = BeanContext.RegisterBean <IBytecodeBehavior>(behaviorType).Finish();

            childBehaviors.Add(behavior);
            supportedEnhancements.AddAll(behavior.GetEnhancements());
        }
Beispiel #2
0
 public IClassVisitor Extend(IClassVisitor visitor, IBytecodeBehaviorState state, IList <IBytecodeBehavior> remainingPendingBehaviors, IList <IBytecodeBehavior> cascadePendingBehaviors)
 {
     for (int a = 0, size = childBehaviors.Count; a < size; a++)
     {
         IBytecodeBehavior childBehavior = childBehaviors[a];
         visitor = childBehavior.Extend(visitor, state, remainingPendingBehaviors, cascadePendingBehaviors);
     }
     return(visitor);
 }
Beispiel #3
0
 public void UnregisterBytecodeBehavior(IBytecodeBehavior bytecodeBehavior)
 {
     bytecodeBehaviorExtensions.Unregister(bytecodeBehavior);
     RefreshSupportedEnhancements();
 }