org.ow2.petals.microkernel.container.ContainerControllerInterceptorLC1a2eb783 Maven / Gradle / Ivy
/*
* 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.container;
public class ContainerControllerInterceptorLC1a2eb783
implements org.ow2.petals.microkernel.container.ContainerController,org.objectweb.fractal.julia.Interceptor {
private org.ow2.petals.microkernel.container.ContainerController _impl;
private juliac.generated.LifeCycleControllerImpl _lc;
public ContainerControllerInterceptorLC1a2eb783() {
}
private ContainerControllerInterceptorLC1a2eb783(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() {
ContainerControllerInterceptorLC1a2eb783 clone = new ContainerControllerInterceptorLC1a2eb783(getFcItfDelegate());
clone._lc = _lc;
return clone;
}
public Object getFcItfDelegate() {
return _impl;
}
public void setFcItfDelegate(Object obj) {
_impl = (org.ow2.petals.microkernel.container.ContainerController)obj;
}
public org.ow2.petals.microkernel.api.container.ServiceAssemblyLifeCycle createServiceAssemblyLifeCycle(final org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly arg0) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
org.ow2.petals.microkernel.api.container.ServiceAssemblyLifeCycle ret = _impl.createServiceAssemblyLifeCycle(arg0);
return ret;
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public org.ow2.petals.microkernel.api.container.SharedLibraryLifeCycle createSharedLibraryLifeCycle(final org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary arg0) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
org.ow2.petals.microkernel.api.container.SharedLibraryLifeCycle ret = _impl.createSharedLibraryLifeCycle(arg0);
return ret;
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public void removeInstaller(final java.lang.String arg0) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
_impl.removeInstaller(arg0);
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public void stopAllJbiArtefacts() throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
_impl.stopAllJbiArtefacts();
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public org.ow2.petals.microkernel.api.container.Installer createInstaller(final org.ow2.petals.jbi.descriptor.original.generated.Component arg0) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
org.ow2.petals.microkernel.api.container.Installer ret = _impl.createInstaller(arg0);
return ret;
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public void removeComponentLifeCycle(final java.lang.String arg0) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
_impl.removeComponentLifeCycle(arg0);
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public void removeSharedLibraryLifeCycle(final java.lang.String arg0,final java.lang.String arg1) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
_impl.removeSharedLibraryLifeCycle(arg0,arg1);
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public org.ow2.petals.microkernel.api.container.ComponentLifeCycle createComponentLifeCycle(final org.ow2.petals.jbi.descriptor.original.generated.Component arg0) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
org.ow2.petals.microkernel.api.container.ComponentLifeCycle ret = _impl.createComponentLifeCycle(arg0);
return ret;
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public void removeServiceAssemblyLifeCycle(final java.lang.String arg0) throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
_impl.removeServiceAssemblyLifeCycle(arg0);
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
public void startAllJbiArtefacts() throws org.ow2.petals.microkernel.container.exception.ContainerCtrlException {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.incrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter++;
}
}
try {
_impl.startAllJbiArtefacts();
}
finally {
synchronized(_lc)
{
if ( _lc.fcState != 2 )
{
_lc.decrementFcInvocationCounter();
}
else
{
_lc.fcInvocationCounter--;
}
}
}
}
}