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)
{
log.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))
{
log.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);