1 17 18 package org.sape.carbon.core.component.lifecycle.test; 19 20 import org.sape.carbon.core.component.ComponentConfiguration; 21 import org.sape.carbon.core.component.lifecycle.NonFatalStateTransitionException; 22 23 32 public class NonFatalExceptionTestComponent 33 extends DestroyOnExceptionTestComponentImpl { 34 35 38 public void resume() throws Exception { 39 try { 40 super.resume(); 41 } catch (Exception e) { 42 throw new NonFatalStateTransitionException( 43 this.getClass(), 44 "this is just a test"); 45 } 46 } 47 48 51 public void start() throws Exception { 52 try { 53 super.start(); 54 } catch (Exception e) { 55 throw new NonFatalStateTransitionException( 56 this.getClass(), 57 "this is just a test"); 58 } 59 } 60 61 64 public void stop() throws Exception { 65 try { 66 super.stop(); 67 } catch (Exception e) { 68 throw new NonFatalStateTransitionException( 69 this.getClass(), 70 "this is just a test"); 71 } 72 } 73 74 77 public void suspend() throws Exception { 78 try { 79 super.suspend(); 80 } catch (Exception e) { 81 throw new NonFatalStateTransitionException( 82 this.getClass(), 83 "this is just a test"); 84 } 85 } 86 87 90 public void configure(ComponentConfiguration configuration) 91 throws Exception { 92 try { 93 super.configure(configuration); 94 } catch (Exception e) { 95 throw new NonFatalStateTransitionException( 96 this.getClass(), 97 "this is just a test"); 98 } 99 } 100 101 } 102 | Popular Tags |