addOutput(ClassLoadingMetaData.class);
}
protected void internalDeploy(VFSDeploymentUnit unit, T deployment, VirtualFile wbXml) throws DeploymentException
{
ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
if (classLoadingMetaData != null)
return;
if (isClassLoadingMetadataPresent(deployment))
return;
if (isIsolated(unit, wbXml) == false)
return;
String domain = getJMXName(deployment, unit) + ",extension=LoaderRepository";
classLoadingMetaData = new ClassLoadingMetaData();
classLoadingMetaData.setName(unit.getName());
classLoadingMetaData.setDomain(domain);
classLoadingMetaData.setExportAll(ExportAll.NON_EMPTY);
classLoadingMetaData.setImportAll(true);
classLoadingMetaData.setVersion(Version.DEFAULT_VERSION);
classLoadingMetaData.setJ2seClassLoadingCompliance(false);
unit.addAttachment(ClassLoadingMetaData.class, classLoadingMetaData);
}