FileDocCategorySizeDatePackage
RARDeployer.javaAPI DocJBoss 4.2.13378Fri Jul 13 21:01:16 BST 2007org.jboss.resource.deployment

RARDeployer

public class RARDeployer extends org.jboss.deployment.ObjectModelFactorySimpleSubDeployerSupport implements RARDeployerMBean
A resource adapter deployer
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
protected ObjectName
workManagerName
The work manager name
protected javax.resource.spi.work.WorkManager
workManager
The work manager
protected javax.resource.spi.XATerminator
xaTerminator
The xa terminator
protected ObjectName
xaTerminatorName
The xa terminator name
Constructors Summary
public RARDeployer()

      setEnhancedSuffixes(new String[] { "250:.rar" });
   
Methods Summary
public java.lang.StringgetDeploymentClass()

      return RARDeployment.class.getName();
   
public java.lang.StringgetExtension()

      return ".rar";
   
public java.lang.StringgetMetaDataURL()

      return "META-INF/ra.xml";
   
public org.jboss.xb.binding.ObjectModelFactorygetObjectModelFactory()

      return new ResourceAdapterObjectModelFactory();
   
public java.lang.StringgetObjectName(org.jboss.deployment.DeploymentInfo di)

      String name = di.shortName;
      di = di.parent;
      while (di != null)
      {
         name = di.shortName + "#" + name;
         di = di.parent;
      }
      return "jboss.jca:service=RARDeployment,name='" + name + "'";
   
public javax.management.ObjectNamegetWorkManagerName()

      return workManagerName;
   
public javax.management.ObjectNamegetXATerminatorName()

      return xaTerminatorName;
   
public voidsetWorkManagerName(javax.management.ObjectName workManagerName)

      this.workManagerName = workManagerName;
   
public voidsetXATerminatorName(javax.management.ObjectName xaTerminatorName)

      this.xaTerminatorName = xaTerminatorName;
   
protected voidstartService()

      workManager = (WorkManager) server.getAttribute(workManagerName, "Instance");
      xaTerminator = (XATerminator) server.getAttribute(xaTerminatorName, "XATerminator");
      super.startService();