1 22 package org.jboss.deployers.plugins.deployers.helpers; 23 24 import org.jboss.deployers.spi.structure.DeploymentContext; 25 26 32 public abstract class AbstractTopLevelClassLoaderDeployer extends AbstractClassLoaderDeployer 33 { 34 public ClassLoader createClassLoader(DeploymentContext context) throws Exception 35 { 36 if (context.isTopLevel()) 37 return createTopLevelClassLoader(context); 38 39 return context.getTopLevel().getClassLoader(); 40 } 41 42 public void removeClassLoader(DeploymentContext context) throws Exception 43 { 44 if (context.isTopLevel()) 45 removeTopLevelClassLoader(context); 46 } 47 48 55 public abstract ClassLoader createTopLevelClassLoader(DeploymentContext context) throws Exception ; 56 57 63 public void removeTopLevelClassLoader(DeploymentContext context) throws Exception 64 { 65 } 66 } 67 | Popular Tags |