Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.AbsoluteOrdering


     *       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

TOP

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

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.