1 package org.apache.turbine.services; 2 3 18 19 29 public class BaseInitable 30 implements Initable 31 { 32 33 protected InitableBroker initableBroker; 34 35 36 protected boolean isInitialized = false; 37 38 45 public BaseInitable() 46 { 47 } 48 49 54 public void setInitableBroker(InitableBroker broker) 55 { 56 this.initableBroker = broker; 57 } 58 59 64 public InitableBroker getInitableBroker() 65 { 66 return initableBroker; 67 } 68 69 80 public void init(Object data) throws InitializationException 81 { 82 } 83 84 94 public void init() throws InitializationException 95 { 96 } 97 98 104 public void shutdown() 105 { 106 setInit(false); 107 } 108 109 114 public boolean getInit() 115 { 116 return isInitialized; 117 } 118 119 124 protected void setInit(boolean value) 125 { 126 this.isInitialized = value; 127 } 128 } 129 | Popular Tags |