1 17 18 package org.sape.carbon.core.component.test; 19 20 import org.sape.carbon.core.component.Component; 21 import org.sape.carbon.core.component.lifecycle.Initializable; 22 import org.sape.carbon.core.component.lifecycle.StateTransitionException; 23 24 36 public class LongInitComponentImpl implements LongInitComponent, Initializable { 37 46 public void initialize(Component thisComponent) { 47 try { 48 synchronized(ComponentKeeperTest.TEST_LOCK) { 49 ComponentKeeperTest.TEST_LOCK.wait(); 50 } 51 } catch(InterruptedException ie) { 52 throw new StateTransitionException( 53 this.getClass(),"Caught InterruptedException",ie); 54 } 55 } 56 } 57 | Popular Tags |