}
@SuppressWarnings("unchecked")
private void doInitialization() throws ServletException
{
ServletConfig config = getServletConfig();
String hierarchy = config.getInitParameter(HIERARCHY_INIT_PARAMETER);
if (hierarchy != null && !"".equals(hierarchy))
{
List<Class<? extends ConfiguredObject>> classes = new ArrayList<Class<? extends ConfiguredObject>>();
String[] hierarchyItems = hierarchy.split(",");
for (String item : hierarchyItems)
{
Class<?> itemClass = null;
try
{
itemClass = Class.forName(item);
}
catch (ClassNotFoundException e)
{
try
{
itemClass = Class.forName("org.apache.qpid.server.model." + item);
}
catch (ClassNotFoundException e1)
{
throw new ServletException("Unknown configured object class '" + item
+ "' is specified in hierarchy for " + config.getServletName());
}
}
Class<? extends ConfiguredObject> clazz = (Class<? extends ConfiguredObject>)itemClass;
classes.add(clazz);
}