public void build(DeploymentUnit unit, Map<String, ManagedObject> managedObjects) throws DeploymentException
{
ClassLoader previous = SecurityActions.setContextClassLoader(classLoader);
try
{
ManagedObjectCreator creator = getManagedObjectCreator();
if (creator != null)
creator.build(unit, managedObjects);
}
catch (Throwable t)
{
throw DeploymentException.rethrowAsDeploymentException("Error building managed objects for " + unit.getName(), t);
}