/** * Apply the context info. This transfers the PredeterminedManagedObjects * and TransientManagedObjects and other information from the ContextInfo to the DeploymentContext. * * @param context the context * @param contextInfo the contextInfo * @throws Exception for any error */ protected void applyContextInfo(DeploymentContext context, ContextInfo contextInfo) throws Exception { Attachments attachments = contextInfo.getPredeterminedManagedObjects(); if (attachments != null) context.setPredeterminedManagedObjects(attachments); context.setRelativeOrder(contextInfo.getRelativeOrder()); applyComparator(context, contextInfo); }
/** * Apply the context info. This transfers the PredeterminedManagedObjects * and TransientManagedObjects and other information from the ContextInfo to the DeploymentContext. * * @param context the context * @param contextInfo the contextInfo * @throws Exception for any error */ protected void applyContextInfo(DeploymentContext context, ContextInfo contextInfo) throws Exception { Attachments attachments = contextInfo.getPredeterminedManagedObjects(); if (attachments != null) context.setPredeterminedManagedObjects(attachments); context.setRelativeOrder(contextInfo.getRelativeOrder()); applyComparator(context, contextInfo); if (structureProcessor != null) structureProcessor.applyContextInfo(context, contextInfo); }