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

org.objectweb.fractal.jmx.agent.AdminInterceptorLC1a2eb783 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:49 GMT+01:00 2016
 */

package org.objectweb.fractal.jmx.agent;


public class AdminInterceptorLC1a2eb783
implements org.objectweb.fractal.jmx.agent.Admin,org.objectweb.fractal.julia.Interceptor {

  private org.objectweb.fractal.jmx.agent.Admin _impl;
  private juliac.generated.LifeCycleControllerImpl _lc;
  public AdminInterceptorLC1a2eb783()  {
  }

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

  public Object getFcItfDelegate()  {
    return _impl;
  }

  public void setFcItfDelegate(Object obj)  {
    _impl = (org.objectweb.fractal.jmx.agent.Admin)obj;
  }

  public void expose() throws javax.management.JMException  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

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

    }

      }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy