1 package org.apache.turbine.services; 2 3 18 19 import javax.servlet.ServletConfig ; 20 21 import org.apache.turbine.util.RunData; 22 23 54 public abstract class TurbineBaseService 55 extends BaseService 56 { 57 66 public void init(Object data) 67 throws InitializationException 68 { 69 if (data instanceof ServletConfig ) 70 { 71 init((ServletConfig ) data); 72 } 73 else if (data instanceof RunData) 74 { 75 init((RunData) data); 76 } 77 } 78 79 88 public void init(ServletConfig config) throws InitializationException 89 { 90 } 91 92 99 public void init(RunData data) throws InitializationException 100 { 101 } 102 103 113 public void init() throws InitializationException 114 { 115 setInit(true); 116 } 117 118 124 public void shutdown() 125 { 126 setInit(false); 127 } 128 } 129 | Popular Tags |