Examples of UninstallCallbackMetaData


Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

      return dependency.getUninstallItems();
   }

   protected AbstractCallbackMetaData createCallback(FieldInfo info, Uninstall annotation)
   {
      UninstallCallbackMetaData callback = new UninstallCallbackMetaData();
      callback.setState(ControllerState.getInstance(annotation.whenRequired()));
      callback.setDependentState(ControllerState.getInstance(annotation.dependentState()));
      if (isAttributePresent(annotation.cardinality()))
         callback.setCardinality(Cardinality.fromString(annotation.cardinality()));
      applyInfo(callback, info);
      return callback;
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

      return dependency.getUninstallItems();
   }

   protected AbstractCallbackMetaData createCallback(T info, Uninstall annotation)
   {
      UninstallCallbackMetaData callback = new UninstallCallbackMetaData();
      callback.setWhenRequired(new ControllerState(annotation.whenRequired()));
      callback.setDependentState(new ControllerState(annotation.dependentState()));
      if (isAttributePresent(annotation.cardinality()))
         callback.setCardinality(Cardinality.fromString(annotation.cardinality()));
      applyInfo(callback, info);
      return callback;
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      QName qname = element.getQName();
      boolean isInstall = qname.getLocalPart().startsWith("in");
      return isInstall ? new InstallCallbackMetaData() : new UninstallCallbackMetaData();
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

      return dependency.getUninstallItems();
   }

   protected AbstractCallbackMetaData createCallback(FieldInfo info, Uninstall annotation)
   {
      UninstallCallbackMetaData callback = new UninstallCallbackMetaData();
      callback.setState(new ControllerState(annotation.whenRequired()));
      callback.setDependentState(new ControllerState(annotation.dependentState()));
      if (isAttributePresent(annotation.cardinality()))
         callback.setCardinality(Cardinality.fromString(annotation.cardinality()));
      applyInfo(callback, info);
      return callback;
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

/* 54 */     return dependency.getUninstallItems();
/*    */   }
/*    */
/*    */   protected AbstractCallbackMetaData createCallback(T info, Uninstall annotation)
/*    */   {
/* 59 */     UninstallCallbackMetaData callback = new UninstallCallbackMetaData();
/* 60 */     callback.setWhenRequired(new ControllerState(annotation.whenRequired()));
/* 61 */     callback.setDependentState(new ControllerState(annotation.dependentState()));
/* 62 */     if (isAttributePresent(annotation.cardinality()))
/* 63 */       callback.setCardinality(Cardinality.fromString(annotation.cardinality()));
/* 64 */     applyInfo(callback, info);
/* 65 */     return callback;
/*    */   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

/*    */
/*    */   public Object startElement(Object parent, QName name, ElementBinding element)
/*    */   {
/* 48 */     QName qname = element.getQName();
/* 49 */     boolean isInstall = qname.getLocalPart().startsWith("in");
/* 50 */     return isInstall ? new InstallCallbackMetaData() : new UninstallCallbackMetaData();
/*    */   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

/*  78 */     KernelController controller = this.kernel.getController();
/*  79 */     AbstractBeanMetaData metaData = new AbstractBeanMetaData("JBossServer", getClass().getName());
/*  80 */     InstallCallbackMetaData install = new InstallCallbackMetaData();
/*  81 */     install.setMethodName("addBootstrap");
/*  82 */     metaData.setInstallCallbacks(Collections.singletonList(install));
/*  83 */     UninstallCallbackMetaData uninstall = new UninstallCallbackMetaData();
/*  84 */     uninstall.setMethodName("removeBootstrap");
/*  85 */     metaData.setUninstallCallbacks(Collections.singletonList(uninstall));
/*  86 */     controller.install(metaData, this);
/*     */
/*  89 */     URL url = getConfig().getBootstrapURL();
/*  90 */     if (url == null)
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.UninstallCallbackMetaData

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      QName qname = element.getQName();
      boolean isInstall = qname.getLocalPart().startsWith("in");
      return isInstall ? new InstallCallbackMetaData() : new UninstallCallbackMetaData();
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.