1 4 package org.jfox.ioc.connector; 5 6 import org.jfox.ioc.common.AbstractService; 7 import org.jfox.ioc.ext.SingletonComponent; 8 9 12 13 public abstract class AbstractContainer extends AbstractService implements Container, SingletonComponent { 14 15 16 protected void doInit() throws Exception { 17 } 18 19 protected void doDestroy() throws Exception { 20 } 21 22 protected void doStart() throws Exception { 23 } 24 25 protected void doStop() throws Exception { 26 } 27 28 public void run() { 29 } 30 31 public static void main(String [] args) { 32 33 } 34 } 35 36 | Popular Tags |