1 16 19 20 package org.apache.pluto.portalImpl.services; 21 22 import javax.servlet.ServletConfig ; 23 import javax.servlet.ServletContext ; 24 25 import org.apache.pluto.portalImpl.util.Properties; 26 27 43 44 public abstract class Service 45 { 46 47 50 protected Service () { 51 52 } 53 54 66 67 protected void init (ServletConfig aConfig, 68 Properties aProperties) throws Exception 69 { 70 if(aConfig != null) 71 { 72 init (aConfig.getServletContext (), aProperties); 73 } 74 else 75 { 76 init (aProperties); 77 } 78 79 } 80 81 93 94 protected void init (ServletContext aContext, 95 Properties aProperties) throws Exception 96 { 97 init (aProperties); 98 } 99 100 109 110 protected void init (Properties aProperties) throws Exception 111 { 112 } 113 114 121 protected void postInit(ServletConfig aConfig) throws Exception 122 { 123 postInit(); 124 } 125 126 133 protected void postInit() throws Exception 134 { 135 } 136 137 147 protected void destroy (ServletConfig aConfig) throws Exception 148 { 149 destroy(); 150 } 151 152 159 protected void destroy () throws Exception 160 { 161 } 162 163 } 164 | Popular Tags |