public void setFcStopping (final LifeCycleCoordinator coordinator) throws IllegalLifeCycleException { synchronized (this) { fcState = 1; fcCoordinator = coordinator; if (fcInvocationCounter == 0) { fcCoordinator.fcInactivated(getFcCoordinator()); } } }
public void setFcStopping (final LifeCycleCoordinator coordinator) throws IllegalLifeCycleException { synchronized (this) { fcState = 1; fcCoordinator = coordinator; if (fcInvocationCounter == 0) { fcCoordinator.fcInactivated(getFcCoordinator()); } } }
/** * Decrements the number of currently executing method calls in this * component. If the component is stopping, and if the counter of currently * executing method calls becomes null after being decremented, this method * notifies the coordinator that the component has become inactive. */ public void decrementFcInvocationCounter () { /* this code is inlined in the interceptor objects synchronized (this) { if (fcState == 2) { --fcInvocationCounter; return; } */ --fcInvocationCounter; if (fcInvocationCounter == 0) { fcCoordinator.fcInactivated(getFcCoordinator()); } /* } */ }
/** * Decrements the number of currently executing method calls in this * component. If the component is stopping, and if the counter of currently * executing method calls becomes null after being decremented, this method * notifies the coordinator that the component has become inactive. */ public void decrementFcInvocationCounter () { /* this code is inlined in the interceptor objects synchronized (this) { if (fcState == 2) { --fcInvocationCounter; return; } */ --fcInvocationCounter; if (fcInvocationCounter == 0) { fcCoordinator.fcInactivated(getFcCoordinator()); } /* } */ }
public void stopFc () throws IllegalLifeCycleException { if (fcState == 2) { _this_stopFc(new LifeCycleCoordinator[] { getFcCoordinator() }); _this_setFcState(false); } }
public void stopFc () throws IllegalLifeCycleException { if (fcState == 2) { _this_stopFc(new LifeCycleCoordinator[] { getFcCoordinator() }); _this_setFcState(false); } }
} else if (fcState == 1) { if (fcInvocationCounter == 0) { ok = fcCoordinator.fcActivated(getFcCoordinator()); } else { ok = true;
} else if (fcState == 1) { if (fcInvocationCounter == 0) { ok = fcCoordinator.fcActivated(getFcCoordinator()); } else { ok = true;