/** * Populate the deployment's classloading metadata from a loader repository config * with parent delegation false. * * @param unit the deployment unit * @param loaderConfig the loader repository config * @return the classloading metadata * @throws DeploymentException for any error */ public static ClassLoadingMetaData create(DeploymentUnit unit, LoaderRepositoryConfig loaderConfig) throws DeploymentException { return create(unit, loaderConfig, false); }
/** * Create classloading metadata from a loader repository config * with parent delegation false * * @param deploymentName the deployment name * @param loaderConfig the loader repository config * @return the classloading metadata * @throws DeploymentException for any error */ public static ClassLoadingMetaData create(String deploymentName, LoaderRepositoryConfig loaderConfig) throws DeploymentException { return create(deploymentName, loaderConfig, false); }
@Override public void deploy(DeploymentUnit unit, ServiceDeployment metaData) throws DeploymentException { ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class); if (classLoadingMetaData != null) return; LoaderRepositoryConfig config = metaData.getLoaderRepositoryConfig(); if (config != null) LoaderRepositoryConfigHelper.create(unit, config); } }
public void deploy(DeploymentUnit unit, ManagedConnectionFactoryDeploymentGroup deployment) throws DeploymentException { ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class); if (classLoadingMetaData != null) return; LoaderRepositoryConfig loaderConfig = deployment.getLoaderRepositoryConfig(); if (loaderConfig == null) return; LoaderRepositoryConfigHelper.create(unit, loaderConfig); } }
/** * Populate the deployment's classloading metadata from a loader repository config * * @param unit the deployment unit * @param loaderConfig the loader repository config * @param parentDelegation the default value for parent delegation * @return the classloading metadata * @throws DeploymentException for any error */ public static ClassLoadingMetaData create(DeploymentUnit unit, LoaderRepositoryConfig loaderConfig, boolean parentDelegation) throws DeploymentException { if (unit == null) throw new IllegalArgumentException("Null unit"); ClassLoadingMetaData clmd = unit.getAttachment(ClassLoadingMetaData.class); if (clmd != null) return clmd; clmd = create(unit.getName(), loaderConfig, parentDelegation); if (clmd != null) unit.addAttachment(ClassLoadingMetaData.class, clmd); return clmd; }
return LoaderRepositoryConfigHelper.create(name, repositoryConfig, parentDelegation);