Package org.wso2.carbon.ui.deployment
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Componentbuild(InputStream componentIn, String componentName, String componentVersion, org.osgi.framework.BundleContext bundleContext)static Componentbuild(org.osgi.framework.Bundle registeredBundle, org.osgi.framework.BundleContext bundleContext)reads component.xml from given bundle & returns an object representation of itstatic voidprocessCustomUIs(org.apache.axiom.om.OMElement document, Component component)static voidprocessMenus(String componentName, org.apache.axiom.om.OMElement document, Component component)
-
-
-
Method Detail
-
build
public static Component build(org.osgi.framework.Bundle registeredBundle, org.osgi.framework.BundleContext bundleContext)
reads component.xml from given bundle & returns an object representation of it- Parameters:
registeredBundle- The bundle that is being registeredbundleContext- 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.CarbonExceptionXMLStreamException
-
processCustomUIs
public static void processCustomUIs(org.apache.axiom.om.OMElement document, Component component)
-
-