Class<?> type = Class.forName(ml.getMessagelistenerType().getValue(), true, cl);
Map<String, Class<?>> configProperties = new HashMap<String, Class<?>>();
Set<String> requiredConfigProperties = new HashSet<String>();
Activationspec15 as = ml.getActivationspec();
List<? extends ConfigProperty> cps = as.getConfigProperties();
if (cps != null && cps.size() > 0)
{
for (ConfigProperty cp : cps)
{
String name = cp.getConfigPropertyName().getValue();
Class<?> ct = Class.forName(cp.getConfigPropertyType().getValue(), true, cl);
configProperties.put(name, ct);
}
}
List<? extends RequiredConfigProperty> rcps = as.getRequiredConfigProperties();
if (rcps != null && rcps.size() > 0)
{
for (RequiredConfigProperty rcp : rcps)
{
String name = rcp.getConfigPropertyName().getValue();
requiredConfigProperties.add(name);
}
}
Class<?> asClz = Class.forName(as.getActivationspecClass().getValue(), true, cl);
ActivationImpl a = new ActivationImpl(rar,
asClz,
Collections.unmodifiableMap(configProperties),
Collections.unmodifiableSet(requiredConfigProperties));