FileDocCategorySizeDatePackage
Domain.javaAPI DocGlassfish v2 API3765Fri May 04 22:35:10 BST 2007com.sun.enterprise.tools.upgrade.transform.elements

Domain

public class Domain extends BaseElement
author
prakash

Fields Summary
private String
DEFAULT_APPLICATION_ROOT
Constructors Summary
public Domain()
Creates a new instance of Domain

    //end CR 6426419

           
      
    
Methods Summary
protected java.util.ListgetNonTransferList(org.w3c.dom.Element element)

        java.util.Vector attrList = new java.util.Vector();

        //start CR 6426419
        //if(commonInfoModel.checkUpgradefrom8xpeto8xse() ||
          if(commonInfoModel.checkUpgrade8xto9x() || commonInfoModel.checkUpgrade9xto9x()) {
            String sourceApplRoot = (String)element.getAttribute("application-root");
            commonInfoModel.setSourceApplicationRoot(sourceApplRoot);
            if(!(sourceApplRoot.equals(DEFAULT_APPLICATION_ROOT))) {
                logger.log(Level.INFO, "New Application Root is " + sourceApplRoot);
            }
        } else {
            //7.x to 8.x scenario			    
            attrList.add("application-root");
        }
	//start CR 6396940
        //attrList.add("application-root");
	//end CR 6396940
        attrList.add("log-root");
        return attrList;
    
public voidtransform(org.w3c.dom.Element element, org.w3c.dom.Element parentSource, org.w3c.dom.Element parentResult)
element - Domain of source parentSource - Domain of source parentResult - domain of target

        this.transferAttributes(element, parentResult, this.getNonTransferList(element));
        super.transform(element,  parentSource, parentResult);