Class ComponentBuilder

java.lang.Object
org.wso2.carbon.ui.deployment.ComponentBuilder

public final class ComponentBuilder extends Object
XML Builder for building the UI related portions of the component.xml file included in Carbon components
  • Method Details

    • build

      public static Component build(org.osgi.framework.Bundle registeredBundle, org.osgi.framework.BundleContext bundleContext)
      reads component.xml from given bundle invalid input: '&' returns an object representation of it
      Parameters:
      registeredBundle - The bundle that is being registered
      bundleContext - The bundle context of the UI bundles
      Returns:
      Component
    • build

      public static Component build(InputStream componentIn, String componentName, String componentVersion, org.osgi.framework.BundleContext bundleContext) throws org.wso2.carbon.CarbonException, XMLStreamException
      Throws:
      org.wso2.carbon.CarbonException
      XMLStreamException
    • processCustomUIs

      public static void processCustomUIs(org.apache.axiom.om.OMElement document, Component component)
    • processMenus

      public static void processMenus(String componentName, org.apache.axiom.om.OMElement document, Component component)