1 9 package org.jboss.portal.server.plugins; 10 11 import org.jboss.portal.common.plugin.AbstractPlugin; 12 import org.jboss.portal.server.kernel.Context; 13 import org.jboss.portal.server.kernel.Registration; 14 import org.jboss.portal.server.kernel.Service; 15 import org.jboss.portal.server.kernel.ServiceImplementation; 16 17 21 public abstract class PluginService 22 extends AbstractPlugin 23 implements Service, Registration 24 { 25 26 protected Context ctx; 27 28 public void create() throws Exception 29 { 30 } 31 32 public void start() throws Exception 33 { 34 } 35 36 public void stop() 37 { 38 } 39 40 public void destroy() 41 { 42 } 43 44 public void addDependsOnMe(ServiceImplementation implementation) 45 { 46 } 47 48 public void addIDependOn(ServiceImplementation implementation) 49 { 50 } 51 52 public void removeDependsOnMe(ServiceImplementation implementation) 53 { 54 } 55 56 public void removeIDependOn(ServiceImplementation implementation) 57 { 58 } 59 60 public void registered(Context ctx) 61 { 62 this.ctx = ctx; 63 } 64 65 public void unregister() 66 { 67 this.ctx = null; 68 } 69 } 70 | Popular Tags |