Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.AbsoluteOrdering$JAXB


     *       2.2 No, Construct the EXCLUDED_JAR_URLS, which is required by many other components,
     *          even the Servlet Container for dynamic ServletRegistration/FilterRegistration
     */
    public static WebFragmentEntry[] absoluteOrderWebFragments(EARContext earContext, Module module, Bundle bundle, WebApp webApp, Map<String, WebFragmentEntry> webFragmentEntryMap)
            throws DeploymentException {
        AbsoluteOrdering absoluteOrdering = webApp.getAbsoluteOrdering();
        Set<String> expliciteConfiguredWebFragmentNames = new LinkedHashSet<String>();
        List<WebFragmentEntry> orderedWebFragments = new LinkedList<WebFragmentEntry>();

        Map<String, WebFragmentEntry> unusedWebFragmentEntryMap = new LinkedHashMap<String, WebFragmentEntry>(webFragmentEntryMap);
        for (Object o : absoluteOrdering.getNameOrOthers()) {
            if (o instanceof String) {
                //web fragment name
                String webFragmentName = (String) o;
                unusedWebFragmentEntryMap.remove(webFragmentName);
            }
        }
        for (Object o : absoluteOrdering.getNameOrOthers()) {
            if (o instanceof String) {
                //web fragment name
                String webFragmentName = (String) o;
                // Only process the web-fragment.xml when it is present and it is not processed before
                if (webFragmentEntryMap.containsKey(webFragmentName) && !expliciteConfiguredWebFragmentNames.contains(webFragmentName)) {
View Full Code Here


     *       2.2 No, Construct the EXCLUDED_JAR_URLS, which is required by many other components,
     *          even the Servlet Container for dynamic ServletRegistration/FilterRegistration
     */
    public static WebFragmentEntry[] absoluteOrderWebFragments(EARContext earContext, Module module, Bundle bundle, WebApp webApp, Map<String, WebFragmentEntry> webFragmentEntryMap)
            throws DeploymentException {
        AbsoluteOrdering absoluteOrdering = webApp.getAbsoluteOrdering();
        Set<String> expliciteConfiguredWebFragmentNames = new LinkedHashSet<String>();
        List<WebFragmentEntry> orderedWebFragments = new LinkedList<WebFragmentEntry>();

        Map<String, WebFragmentEntry> unusedWebFragmentEntryMap = new LinkedHashMap<String, WebFragmentEntry>(webFragmentEntryMap);
        for (Object o : absoluteOrdering.getNameOrOthers()) {
            if (o instanceof String) {
                //web fragment name
                String webFragmentName = (String) o;
                unusedWebFragmentEntryMap.remove(webFragmentName);
            }
        }
        for (Object o : absoluteOrdering.getNameOrOthers()) {
            if (o instanceof String) {
                //web fragment name
                String webFragmentName = (String) o;
                // Only process the web-fragment.xml when it is present and it is not processed before
                if (webFragmentEntryMap.containsKey(webFragmentName) && !expliciteConfiguredWebFragmentNames.contains(webFragmentName)) {
View Full Code Here

* @version $Rev$ $Date$
*/
public class ApplicationXml {

    public static Application unmarshal(final InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new Application$JAXB(), inputStream);
    }
View Full Code Here

    }

    public static Application unmarshal(final URL url) throws Exception {
        final InputStream inputStream = IO.read(url);
        try {
            return Sxc.unmarshalJavaee(new Application$JAXB(), inputStream);
        } finally {
            IO.close(inputStream);
        }
    }
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(final Application application, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new Application$JAXB(), application, new StreamResult(outputStream));
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class ApplicationXml {

    public static Application unmarshal(final InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new Application$JAXB(), inputStream);
    }
View Full Code Here

    }

    public static Application unmarshal(final URL url) throws Exception {
        final InputStream inputStream = IO.read(url);
        try {
            return Sxc.unmarshalJavaee(new Application$JAXB(), inputStream);
        } finally {
            IO.close(inputStream);
        }
    }
View Full Code Here

            IO.close(inputStream);
        }
    }

    public static void marshal(final Application application, final OutputStream outputStream) throws Exception {
        Sxc.marshal(new Application$JAXB(), application, new StreamResult(outputStream));
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class ApplicationXml {

    public static Application unmarshal(InputStream inputStream) throws Exception {
        return Sxc.unmarshalJavaee(new Application$JAXB(), inputStream);
    }
View Full Code Here

    }

    public static Application unmarshal(URL url) throws Exception {
        final InputStream inputStream = IO.read(url);
        try {
            return Sxc.unmarshalJavaee(new Application$JAXB(), inputStream);
        } finally {
            IO.close(inputStream);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.AbsoluteOrdering$JAXB

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.