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

org.ow2.petals.microkernel.api.container.SharedLibraryLifeCycleInterceptorLC1a2eb783 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:47 GMT+01:00 2016
 */

package org.ow2.petals.microkernel.api.container;


public class SharedLibraryLifeCycleInterceptorLC1a2eb783
implements org.ow2.petals.microkernel.api.container.SharedLibraryLifeCycle,org.objectweb.fractal.julia.Interceptor {

  private org.ow2.petals.microkernel.api.container.SharedLibraryLifeCycle _impl;
  private juliac.generated.LifeCycleControllerImpl _lc;
  public SharedLibraryLifeCycleInterceptorLC1a2eb783()  {
  }

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

  public Object getFcItfDelegate()  {
    return _impl;
  }

  public void setFcItfDelegate(Object obj)  {
    _impl = (org.ow2.petals.microkernel.api.container.SharedLibraryLifeCycle)obj;
  }

  public void unLoadSharedLibrary()  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

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

    }

      }
  }

  public void loadSharedLibrary() throws org.ow2.petals.basisapi.exception.PetalsException  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

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

    }

      }
  }

  public void registerComponent(final java.lang.String arg0)  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

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

    }

      }
  }

  public java.lang.String getState()  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

      try {
    java.lang.String ret = _impl.getState();
    return ret;
      }
      finally {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.decrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter--;
      }

    }

      }
  }

  public boolean isLoaded()  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

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

    }

      }
  }

  public void unregisterComponent(final java.lang.String arg0)  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

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

    }

      }
  }

  public java.util.List getRegisteredComponents()  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

      try {
    java.util.List ret = _impl.getRegisteredComponents();
    return ret;
      }
      finally {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.decrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter--;
      }

    }

      }
  }

  public org.ow2.petals.microkernel.api.container.SharedLibraryBean getSharedLibraryBean()  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

      try {
    org.ow2.petals.microkernel.api.container.SharedLibraryBean ret = _impl.getSharedLibraryBean();
    return ret;
      }
      finally {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.decrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter--;
      }

    }

      }
  }

  public void init(final org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary arg0,final java.net.URL[] arg1,final boolean arg2)  {
    synchronized(_lc)
    {
      if ( _lc.fcState != 2 )
      {
        _lc.incrementFcInvocationCounter();
      }
      else
      {
        _lc.fcInvocationCounter++;
      }

    }

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

    }

      }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy