Package org.jboss.deployment

Examples of org.jboss.deployment.DeploymentInfo


   public ObjectName create(MBeanServer server, Object data)
   {
      if ((data instanceof DeploymentInfo) == false)
         return null;

      DeploymentInfo di = (DeploymentInfo) data;
      String moduleName = di.shortName;
      ObjectName jsr77Name = J2EEApplication.create(server, moduleName, di.localUrl);
      deploymentToModuleNameMap.put(di, jsr77Name);
      if (jsr77Name != null)
      {
View Full Code Here


   public void destroy(MBeanServer server, Object data)
   {
      if ((data instanceof DeploymentInfo) == false)
         return;

      DeploymentInfo di = (DeploymentInfo) data;
      ObjectName jsr77Name = (ObjectName) deploymentToModuleNameMap.remove(di);
      // Remove JSR-77 EAR-Module
      if (jsr77Name != null)
      {
         J2EEApplication.destroy(server, jsr77Name);
View Full Code Here

   public ObjectName create(MBeanServer server, Object data)
   {
      if ((data instanceof DeploymentInfo) == false)
         return null;

      DeploymentInfo di = (DeploymentInfo) data;
      String moduleName = di.shortName;
      ObjectName sarName = ServiceModule.create(server, moduleName, di.localUrl);
      if (sarName != null)
      {
         log.debug("Created ServiceModule: " + sarName);
View Full Code Here

   public void destroy(MBeanServer server, Object data)
   {
      if ((data instanceof DeploymentInfo) == false)
         return;

      DeploymentInfo di = (DeploymentInfo) data;
      List services = di.mbeans;
      int lastService = services.size();

      for (ListIterator i = services.listIterator(lastService); i.hasPrevious();)
      {
View Full Code Here

      // this is done so that we can get dependency error messages.
      // and this is the only reason this is done.
      // if you don't put add to the top DI mbean list, then no dependency
      // error message is printed out if there is one.
      DeploymentInfo parent = di;
      while (parent.parent != null)
      {
         parent = parent.parent;
      }
      parent.mbeans.add(on);
View Full Code Here

   }
  
   private void removeParentDependency(ObjectName on)
   {
      DeploymentInfo parent = di;
      while (parent.parent != null)
      {
         parent = parent.parent;
      }
      parent.mbeans.remove(on);
View Full Code Here

      List<DeploymentRef> deploymentRefs = new ArrayList<DeploymentRef>();

      Iterator iterator = rootDeployment.subDeployments.iterator();
      while(iterator.hasNext())
      {
        DeploymentInfo subDeployment = (DeploymentInfo)iterator.next();
        JBPMDeploymentMetaData md = new JBPMDeploymentMetaData();
        md.setClassloader(subDeployment.localCl);
        md.setWatch(rootDeployment.watch);
        md.setProcessDescriptor(subDeployment.url);
View Full Code Here

         }
        
         // Check the shortName in the payload. We assume that proper
         // filtering on notification type, ensures that the
         // notification actually carries a DeploymentInfo.
         DeploymentInfo di = (DeploymentInfo)notification.getUserData();
         String shortName = di.shortName;

         // Return true if the shortName is enabled, false otherwise
         return enabledShortNames.contains(shortName);
      }
View Full Code Here

   public DeploymentInfo getDeploymentInfo()
      throws JMException
   {
      Object[] args = {serviceName};
      String[] sig = {serviceName.getClass().getName()};
      DeploymentInfo sdi = (DeploymentInfo) server.invoke(SARDeployerMBean.OBJECT_NAME,
         "getService", args, sig);
      return sdi;
   }
View Full Code Here

/* 241 */       if (!super.isNotificationEnabled(notification))
/*     */       {
/* 243 */         return false;
/*     */       }
/*     */
/* 249 */       DeploymentInfo di = (DeploymentInfo)notification.getUserData();
/* 250 */       String shortName = di.shortName;
/*     */
/* 253 */       return this.enabledShortNames.contains(shortName);
/*     */     }
View Full Code Here

TOP

Related Classes of org.jboss.deployment.DeploymentInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.