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

org.ow2.petals.microkernel.jbi.messaging.control.ExchangeCheckerClientInterceptorLC1a2eb783 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.control;


public class ExchangeCheckerClientInterceptorLC1a2eb783
implements org.ow2.petals.microkernel.jbi.messaging.control.ExchangeCheckerClient,org.objectweb.fractal.julia.Interceptor {

  private org.ow2.petals.microkernel.jbi.messaging.control.ExchangeCheckerClient _impl;
  private juliac.generated.LifeCycleControllerImpl _lc;
  public ExchangeCheckerClientInterceptorLC1a2eb783()  {
  }

  private ExchangeCheckerClientInterceptorLC1a2eb783(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()  {
    ExchangeCheckerClientInterceptorLC1a2eb783 clone = new ExchangeCheckerClientInterceptorLC1a2eb783(getFcItfDelegate());
    clone._lc = _lc;
    return clone;
  }

  public Object getFcItfDelegate()  {
    return _impl;
  }

  public void setFcItfDelegate(Object obj)  {
    _impl = (org.ow2.petals.microkernel.jbi.messaging.control.ExchangeCheckerClient)obj;
  }

  public boolean isExchangeWithProviderOkayForComponent(final org.ow2.petals.jbi.servicedesc.endpoint.Location arg0,final org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint arg1,final javax.jbi.messaging.MessageExchange arg2)  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

      try {
    boolean ret = _impl.isExchangeWithProviderOkayForComponent(arg0,arg1,arg2);
    return ret;
      }
      finally {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.decrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter--;
      }

    }

      }
  }

  public boolean isExchangeWithConsumerOkayForComponent(final org.ow2.petals.jbi.servicedesc.endpoint.Location arg0,final org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint arg1,final javax.jbi.messaging.MessageExchange arg2)  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

      try {
    boolean ret = _impl.isExchangeWithConsumerOkayForComponent(arg0,arg1,arg2);
    return ret;
      }
      finally {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.decrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter--;
      }

    }

      }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy