Class RaXmlDeployer

All Implemented Interfaces:
com.github.fungal.spi.deployers.Deployer, com.github.fungal.spi.deployers.DeployerPhases

public class RaXmlDeployer extends AbstractFungalRADeployer implements com.github.fungal.spi.deployers.Deployer, com.github.fungal.spi.deployers.DeployerPhases
The -ra.xml deployer for JCA/SJC
Author:
Jesper Pedersen
  • Constructor Details

    • RaXmlDeployer

      public RaXmlDeployer()
      Constructor
  • Method Details

    • getLogger

      protected DeployersLogger getLogger()
      Specified by:
      getLogger in class AbstractResourceAdapterDeployer
    • accepts

      public boolean accepts(URL url)
      Specified by:
      accepts in interface com.github.fungal.spi.deployers.Deployer
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface com.github.fungal.spi.deployers.Deployer
    • preDeploy

      public void preDeploy() throws Throwable
      Pre deploy
      Specified by:
      preDeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs
    • postDeploy

      public void postDeploy() throws Throwable
      Post deploy
      Specified by:
      postDeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs
    • preUndeploy

      public void preUndeploy() throws Throwable
      Pre undeploy
      Specified by:
      preUndeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs
    • postUndeploy

      public void postUndeploy() throws Throwable
      Post undeploy
      Specified by:
      postUndeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs
    • deploy

      public com.github.fungal.spi.deployers.Deployment deploy(URL url, com.github.fungal.spi.deployers.Context context, ClassLoader parent) throws com.github.fungal.spi.deployers.DeployException
      Specified by:
      deploy in interface com.github.fungal.spi.deployers.Deployer
      Throws:
      com.github.fungal.spi.deployers.DeployException
    • getFileFromUrl

      protected File getFileFromUrl(URL url) throws URISyntaxException, IOException
      Get File object of URL who locate xml resource
      Parameters:
      url - url of the archive
      Returns:
      a File object pointing of xml resource
      Throws:
      URISyntaxException - Thrown if the resource adapter cant be found
      IOException - Thrown if the resource adapter cant be accessible
    • getIronJacamarHome

      protected String getIronJacamarHome()
      Get IronJacamar Home directory
      Returns:
      a String object
    • cleanTemporaryFiles

      protected void cleanTemporaryFiles(URL url) throws com.github.fungal.spi.deployers.DeployException
      Clean all potential temporary files
      Parameters:
      url - url of the archive
      Throws:
      com.github.fungal.spi.deployers.DeployException - Thrown if the resource cant be cleaned
    • checkActivation

      protected boolean checkActivation(org.jboss.jca.common.api.metadata.spec.Connector cmd, org.jboss.jca.common.api.metadata.resourceadapter.Activation activation)
      Specified by:
      checkActivation in class AbstractResourceAdapterDeployer