Package org.apache.fulcrum.intake.xmlmodel

Examples of org.apache.fulcrum.intake.xmlmodel.XmlGroup


            String groupPrefix = appData.getGroupPrefix();

            for (int i = glist.size() - 1; i >= 0; i--)
            {
                XmlGroup g = (XmlGroup) glist.get(i);
                String groupName = g.getName();

                boolean registerUnqualified = registerGroup(groupName, g,
                        appData, true);

                if (!registerUnqualified)
                {
                    getLogger().info(
                            "Ignored redefinition of Group " + groupName
                                    + " or Key " + g.getKey() + " from "
                                    + appDataElements.get(appData));
                }

                if (groupPrefix != null)
                {
                    StringBuffer qualifiedName = new StringBuffer();
                    qualifiedName.append(groupPrefix).append(':').append(
                            groupName);

                    // Add the fully qualified group name. Do _not_ check
                    // for
                    // the existence of the key if the unqualified
                    // registration succeeded
                    // (because then it was added by the registerGroup
                    // above).
                    if (!registerGroup(qualifiedName.toString(), g,
                            appData, !registerUnqualified))
                    {
                        getLogger().error(
                            "Could not register fully qualified name "
                                    + qualifiedName
                                    + ", maybe two XML files have the same prefix. Ignoring it.");
                    }
                }

                maxPooledGroups = Math.max(maxPooledGroups, Integer
                        .parseInt(g.getPoolCapacity()));

            }

            KeyedPoolableObjectFactory factory = new Group.GroupFactory(
                    appData);
View Full Code Here

TOP

Related Classes of org.apache.fulcrum.intake.xmlmodel.XmlGroup

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.