{
throw new IllegalArgumentException("Domain was not instance of JBossClClassPoolDomain: " + domain.getClass().getName());
}
this.module = new WeakReference<Module>(module);
this.callback = callback;
toClassInvoker = new ToClassInvoker(module == null ? null : module.getDynamicClassRoot());
if (logger.isTraceEnabled()) logger.trace(this + " module");
((JBossClClassPoolDomain)domain).setupPoolsByPackage(this);
}