Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » embedded » [javadoc | source]
org.jboss.embedded
public class: Bootstrap [javadoc | source]
java.lang.Object
   org.jboss.embedded.Bootstrap

Direct Known Subclasses:
    BinaryBootstrap

Basic bootstrap class for embeddable JBoss
Field Summary
public static final  String BOOTSTRAP_RESOURCE_PATH     
public static final  String BOOTSTRAP_RESOURCE_FILE     
protected  Kernel kernel     
protected  ClassLoader loader     
protected  MainDeployer mainDeployer     
protected  boolean started     
protected  boolean ignoreShutdownErrors     
Constructor:
 public Bootstrap() 
 public Bootstrap(Kernel kernel) 
Method from org.jboss.embedded.Bootstrap Summary:
bootstrap,   bootstrap,   bootstrapURL,   createDeploymentGroup,   createKernel,   deploy,   deploy,   deployBaseBootstrapUrl,   deployDirectory,   deployDirectoryFromResource,   deployResource,   deployResourceBase,   deployResourceBase,   deployResourceBases,   getInstance,   getKernel,   getLoader,   isIgnoreShutdownErrors,   isStarted,   main,   scanClasspath,   setIgnoreShutdownErrors,   setKernel,   setLoader,   shutdown,   undeploy,   undeploy,   undeployClasspath,   undeployDirectory,   undeployDirectoryFromResource,   undeployResource,   undeployResourceBase,   undeployResourceBase,   undeployResourceBases
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.embedded.Bootstrap Detail:
 public  void bootstrap() throws DeploymentException 
    Will obtain resource path from jboss.embedded.bootstrap.resource.path System Property. Otherwise it just invoked bootstrap(String bootstrapResourcePath) with ""
 public  void bootstrap(String bootstrapResourcePath) throws DeploymentException 
    Specify top classpath resource directory where base JBoss Embedded directory structure is. The Embedded JBoss directory structure is determined by extrapolating a directory from a base classpath resource. The absolute directory will be determined by doing classloader.getResource(bootstrapResourcePath + "conf/bootstrap-beans.xml")
 protected  void bootstrapURL(URL url) throws DeploymentException 
 public DeploymentGroup createDeploymentGroup() 
 protected static Kernel createKernel() 
 public  void deploy(URL url) throws DeploymentException 
 public  void deploy(VirtualFile file) throws DeploymentException 
 protected  void deployBaseBootstrapUrl(URL url) throws Throwable 
 public  void deployDirectory(URL url,
    boolean recurse) throws DeploymentException, IOException 
    Define a deploy directory and deploy all files within it. The recurse parameter tells whether to recurse into sub directories for deployments
 public  void deployDirectoryFromResource(String resource,
    boolean recurse) throws DeploymentException, IOException 
    Find a deploy directory from a base resource
 public  void deployResource(String resource) throws DeploymentException 
    Deploy a resource found by getResource() on the kernel's classloader
 public  void deployResourceBase(String baseResource) throws DeploymentException 
    Deploy the classpath directories or .jar files a classloader resource is located in. ClassLoader.getResources() is used to find the base resources. i.e. classpath is "/home/wburke/lib/tutorial.jar:/home/wburke/lib/pu.jar" tutorial.jar and pu.jar has "META-INF/persistence.xml" resource within it. addResourceBases("META-INF/persistence.xml") will try and deploy tutorial.jar and pu.jar because the both have the META-INF/persistence.xml resource within them.
 public  void deployResourceBase(Class baseResource) throws DeploymentException 
    Find the .class resource of the given class Deploy a URL pointing to the classpath the resource is located in. i.e. classpath is "/home/wburke/lib/tutorial.jar" tutorial.jar has "META-INF/persistence.xml" resource within it. addResourceBase("META-INF/persistence.xml") will try and deploy tutorial.jar classloader.getResource("META-INF/persistence.xml") is used to determine the base location
 public  void deployResourceBases(String baseResource) throws DeploymentException 
 public static synchronized Bootstrap getInstance() 
    For those applications that need a singelton Bootstrap instance
 public Kernel getKernel() 
 public ClassLoader getLoader() 
 public boolean isIgnoreShutdownErrors() 
 public boolean isStarted() 
 public static  void main(String[] args) throws Exception 
 public  void scanClasspath(String path) throws DeploymentException 
    Look in java.class.path for any .jar or class directories whose base file/dir match any base file/dir names in the comma delimited path parameter If classpath is: /home/wburke/jars/foo.jar and path is: "foo.jar" This will be a match and that .jar file will be deployed
 public  void setIgnoreShutdownErrors(boolean ignoreShutdownErrors) 
 public  void setKernel(Kernel kernel) 
 public  void setLoader(ClassLoader loader) 
 public  void shutdown() 
    Shutdown the kernel and all deployments
 public  void undeploy(URL url) throws DeploymentException 
 public  void undeploy(VirtualFile vf) throws DeploymentException 
 public  void undeployClasspath(String path) throws DeploymentException 
    Undeploy something deployed via scanSclasspath()
 public  void undeployDirectory(URL url,
    boolean recurse) throws DeploymentException, IOException 
 public  void undeployDirectoryFromResource(String resource,
    boolean recurse) throws DeploymentException, IOException 
 public  void undeployResource(String resource) throws DeploymentException 
    opposite of deployResource
 public  void undeployResourceBase(String baseResource) throws DeploymentException 
    opposite of deployResourceBase()
 public  void undeployResourceBase(Class baseResource) throws DeploymentException 
    opposite of deployResourceBase()
 public  void undeployResourceBases(String baseResource) throws DeploymentException