All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.petals.microkernel.jbi.messaging.routing.module.SenderModuleInterceptorLC1a2eb783 Maven / Gradle / Ivy

There is a newer version: 4.3.0
Show newest version
/*
 * Generated by: 
 *   org.objectweb.fractal.juliac.proxy.InterceptorClassGenerator
 *     org.objectweb.fractal.juliac.proxy.LifeCycleSourceCodeGenerator matches true
 * on: Wed Sep 21 08:11:48 GMT+01:00 2016
 */

package org.ow2.petals.microkernel.jbi.messaging.routing.module;


public class SenderModuleInterceptorLC1a2eb783
implements org.ow2.petals.microkernel.jbi.messaging.routing.module.SenderModule,org.objectweb.fractal.julia.Interceptor {

  private org.ow2.petals.microkernel.jbi.messaging.routing.module.SenderModule _impl;
  private juliac.generated.LifeCycleControllerImpl _lc;
  public SenderModuleInterceptorLC1a2eb783()  {
  }

  private SenderModuleInterceptorLC1a2eb783(Object obj)  {
    setFcItfDelegate(obj);
  }

  public void initFcController(org.objectweb.fractal.julia.InitializationContext ic) throws org.objectweb.fractal.api.factory.InstantiationException  {
    Object olc = ic.getInterface("lifecycle-controller");
    if ( !( olc instanceof juliac.generated.LifeCycleControllerImpl ) )
    {
      while ( olc instanceof org.objectweb.fractal.julia.Interceptor )
      {
        olc = ((org.objectweb.fractal.julia.Interceptor)olc).getFcItfDelegate();
      }

    }
    _lc = (juliac.generated.LifeCycleControllerImpl) olc;
  }

  public Object clone()  {
    SenderModuleInterceptorLC1a2eb783 clone = new SenderModuleInterceptorLC1a2eb783(getFcItfDelegate());
    clone._lc = _lc;
    return clone;
  }

  public Object getFcItfDelegate()  {
    return _impl;
  }

  public void setFcItfDelegate(Object obj)  {
    _impl = (org.ow2.petals.microkernel.jbi.messaging.routing.module.SenderModule)obj;
  }

  public void electEndpoints(final java.util.List arg0,final org.ow2.petals.jbi.messaging.exchange.PetalsMessageExchange arg1) throws org.ow2.petals.microkernel.api.jbi.messaging.exception.RoutingException  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

      try {
    _impl.electEndpoints(arg0,arg1);
      }
      finally {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.decrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter--;
      }

    }

      }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy