FileDocCategorySizeDatePackage
CheckpointAtEndOfMethodDescriptor.javaAPI DocGlassfish v2 API4532Fri May 04 22:31:50 BST 2007com.sun.enterprise.deployment.runtime

CheckpointAtEndOfMethodDescriptor

public class CheckpointAtEndOfMethodDescriptor extends com.sun.enterprise.deployment.Descriptor

Fields Summary
private ArrayList
methodDescs
private ArrayList
convertedMethodDescs
private com.sun.enterprise.deployment.EjbDescriptor
ejbDescriptor
Constructors Summary
public CheckpointAtEndOfMethodDescriptor()
Default constructor.


       
      
    
Methods Summary
public voidaddMethodDescriptor(com.sun.enterprise.deployment.MethodDescriptor methodDesc)
Setter for method

param
MethodDescriptor New value of MethodDescriptor to add.

        methodDescs.add(methodDesc);
    
private voidconvertStyleCheckpointedMethods()

        Set allMethods = ejbDescriptor.getMethodDescriptors();
        for (Iterator mdItr = methodDescs.iterator(); mdItr.hasNext();) {
            MethodDescriptor methodDesc = (MethodDescriptor) mdItr.next();

            // the ejb-name element defined in the method element will
            // be always ignored and overriden by the one defined in 
            // ejb element
            methodDesc.setEjbName(ejbDescriptor.getName());

            // Convert to style 3 method descriptors
            Vector mds = 
                methodDesc.doStyleConversion(ejbDescriptor, allMethods);
            convertedMethodDescs.addAll(mds); 
        }
    
public java.util.ArrayListgetConvertedMethodDescs()
Getter for converted method

return
Value of style converted MethodDescriptor list

       if (convertedMethodDescs.isEmpty()) {
           convertStyleCheckpointedMethods();
       } 
       return convertedMethodDescs;
    
public com.sun.enterprise.deployment.EjbDescriptorgetEjbDescriptor()
Getter for ejbDescriptor

return
Value of ejbDescriptor

        return ejbDescriptor;
    
public java.util.ArrayListgetMethodDescriptors()
Getter for method

return
Value of MethodDescriptor list

        return methodDescs;
    
public booleanisCheckpointEnabledFor(com.sun.enterprise.deployment.MethodDescriptor methodDesc)

        return getConvertedMethodDescs().contains(methodDesc);
    
public voidsetEjbDescriptor(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor)
Setter for ejbDescriptors

param
ejbDescriptors New value of ejbDescriptor.

        this.ejbDescriptor = ejbDescriptor;