Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mobicents.slee.container.management
Class AbstractComponentDeployer  view AbstractComponentDeployer download AbstractComponentDeployer.java

java.lang.Object
  extended byorg.mobicents.slee.container.management.AbstractComponentDeployer
Direct Known Subclasses:
EventTypeComponentDeployer, ProfileSpecComponentDeployer, ResourceAdaptorComponentDeployer, ResourceAdaptorTypeComponentDeployer, SbbComponentDeployer

abstract class AbstractComponentDeployer
extends java.lang.Object

Instances of this class represent DU components or in other words - JAR file entries contained in a deployable unit jar such as SBBs, Profiles, RA Types and etc.


Field Summary
protected  java.io.File classpathDirectory
           
protected  ComponentContainer componentContainer
           
protected  java.util.List componentDescriptors
           
private  java.util.jar.JarFile componentJar
           
protected  DeployableUnitDeployer duDeployer
           
private  org.jboss.logging.Logger logger
           
private  boolean preparedToDeploy
           
 
Constructor Summary
(package private) AbstractComponentDeployer()
           
 
Method Summary
protected  void deployAndInstall(DeployableUnitIDImpl deployableUnitID)
          Installs the all component descriptors in the ComponentContainer specified to the ComponentDeployer in the initDeployer method..
(package private)  java.util.jar.JarFile getJar()
           
protected  void initDeployer(java.util.jar.JarFile componentJar, ComponentContainer container, java.io.File classpathDirectory, DeployableUnitDeployer duDeployer)
          Inits and parses
protected abstract  java.util.List parseComponentDescriptors()
           
protected  void prepareDeploy(DeployableUnitIDImpl deployableUnitID)
          Unpackages the component files.
protected static void undeploy(DeployableUnitIDImpl deployableUnitID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private org.jboss.logging.Logger logger

componentJar

private java.util.jar.JarFile componentJar

componentDescriptors

protected java.util.List componentDescriptors

componentContainer

protected ComponentContainer componentContainer

classpathDirectory

protected java.io.File classpathDirectory

duDeployer

protected DeployableUnitDeployer duDeployer

preparedToDeploy

private boolean preparedToDeploy
Constructor Detail

AbstractComponentDeployer

AbstractComponentDeployer()
Method Detail

getJar

java.util.jar.JarFile getJar()

initDeployer

protected void initDeployer(java.util.jar.JarFile componentJar,
                            ComponentContainer container,
                            java.io.File classpathDirectory,
                            DeployableUnitDeployer duDeployer)
                     throws DeploymentException
Inits and parses


parseComponentDescriptors

protected abstract java.util.List parseComponentDescriptors()
                                                     throws java.lang.Exception

deployAndInstall

protected void deployAndInstall(DeployableUnitIDImpl deployableUnitID)
                         throws java.lang.Exception
Installs the all component descriptors in the ComponentContainer specified to the ComponentDeployer in the initDeployer method..


prepareDeploy

protected void prepareDeploy(DeployableUnitIDImpl deployableUnitID)
                      throws java.lang.Exception
Unpackages the component files. Should be always invoked before deployAndInstall. More specifically this method should be invoked on all components in the same DU. After that the deployAndInstall method should be invoked on all components. This is required to ensure class visibility across components at deployment time.


undeploy

protected static void undeploy(DeployableUnitIDImpl deployableUnitID)