FileDocCategorySizeDatePackage
TracerVisitor.javaAPI DocGlassfish v2 API11916Fri May 04 22:31:58 BST 2007com.sun.enterprise.deployment.util

TracerVisitor

public class TracerVisitor extends DefaultDOLVisitor
author
dochez
version

Fields Summary
Constructors Summary
public TracerVisitor()
Creates new TracerVisitor

    
Methods Summary
public voidaccept(com.sun.enterprise.deployment.RoleReference roleRef)
visits a role reference for the last J2EE component visited

param
ejb descriptor the role is referenced from*
param
role reference

        DOLUtils.getDefaultLogger().info("Security Role Reference : " 
                                + roleRef.getName() + " link " + roleRef.getValue());
    
public voidaccept(com.sun.enterprise.deployment.MethodDescriptor method, com.sun.enterprise.deployment.ContainerTransaction ct)
visists a method transaction for the last J2EE component visited

param
ejb descritptor this method applies to
param
method descriptor the method
param
container transaction

            
        DOLUtils.getDefaultLogger().info( ct.getTransactionAttribute() 
                                + " Container Transaction for method "
                                + method.prettyPrint() );
            
    
public voidaccept(com.sun.enterprise.deployment.EnvironmentProperty envEntry)
visists an environment property for the last J2EE component visited

paren
the environment property

        DOLUtils.getDefaultLogger().info( envEntry.toString());    
    
public voidaccept(com.sun.enterprise.deployment.FieldDescriptor fd)
visits a CMP field definition (for CMP entity beans)

param
field descriptor for the CMP field

        DOLUtils.getDefaultLogger().info("CMP Field "  +fd);
    
public voidaccept(com.sun.enterprise.deployment.MethodDescriptor method, com.sun.enterprise.deployment.QueryDescriptor qd)
visits a query method

param
method descriptor for the method
param
query descriptor

        DOLUtils.getDefaultLogger().info(qd.toString());
    
public voidaccept(com.sun.enterprise.deployment.RelationshipDescriptor descriptor)
visits an ejb relationship descriptor

param
the relationship descriptor

        DOLUtils.getDefaultLogger().info("============ Relationships ===========");
        DOLUtils.getDefaultLogger().info("From EJB " + descriptor.getSource().getName()  
                                                                    + " cmr field : " + descriptor.getSource().getCMRField() 
                                                                    + "(" + descriptor.getSource().getCMRFieldType() + ")  to EJB " + descriptor.getSink().getName() 
                                                                    + " isMany " + descriptor.getSource().getIsMany() 
                                                                    + " cascade-delete " + descriptor.getSource().getCascadeDelete());                                                                    
        
       DOLUtils.getDefaultLogger().info("To  EJB " + descriptor.getSink().getName()
                                                                    + " isMany " + descriptor.getSink().getIsMany() 
                                                                    + " cascade-delete " + descriptor.getSink().getCascadeDelete());        

        if (descriptor.getIsBidirectional()) {        
            DOLUtils.getDefaultLogger().info( "Bidirectional cmr field : " + descriptor.getSink().getCMRField()
                                                                    + "(" + descriptor.getSink().getCMRFieldType() + ")");
        }
    
public voidaccept(com.sun.enterprise.deployment.Descriptor descriptor)
visits a J2EE descriptor

param
the descriptor

        DOLUtils.getDefaultLogger().info(descriptor.toString());
    
public voidaccept(com.sun.enterprise.deployment.ApplicationClientDescriptor appclientDesc)
visits an app client descriptor

param
app client descriptor

        DOLUtils.getDefaultLogger().info("==================");                
        DOLUtils.getDefaultLogger().info("\tAppClient Description " + appclientDesc.getDescription());        
	DOLUtils.getDefaultLogger().info("\tAppClient Name " + appclientDesc.getName());
	DOLUtils.getDefaultLogger().info("\tAppClient Small Icon " + appclientDesc.getSmallIconUri());
	DOLUtils.getDefaultLogger().info("\tAppClient Large Icon " + appclientDesc.getLargeIconUri());
	DOLUtils.getDefaultLogger().info("\tAppClient Callback Handler " + appclientDesc.getCallbackHandler());
	//add rest of the tags
    
public voidaccept(com.sun.enterprise.deployment.ConnectorDescriptor conDesc)
visits an connector descriptor

param
connector descriptor

        DOLUtils.getDefaultLogger().info("==================");                
        DOLUtils.getDefaultLogger().info(conDesc.toString());
    
public voidaccept(com.sun.enterprise.deployment.WebBundleDescriptor descriptor)
visit a web bundle descriptor

param
the web bundle descriptor

        DOLUtils.getDefaultLogger().info(descriptor.toString());        
    
public voidaccept(com.sun.enterprise.deployment.Application application)
visit an application object

param
the application descriptor

	DOLUtils.getDefaultLogger().info("Application");
	DOLUtils.getDefaultLogger().info("name " + application.getName());
	DOLUtils.getDefaultLogger().info("smallIcon " + application.getSmallIconUri());
    
public voidaccept(com.sun.enterprise.deployment.WebComponentDescriptor descriptor)
visit a web component descriptor

param
the web component

        DOLUtils.getDefaultLogger().info("==================");             
        DOLUtils.getDefaultLogger().info(descriptor.toString());        
    
public voidaccept(com.sun.enterprise.deployment.EjbBundleDescriptor bundleDescriptor)
visits an ejb bundle descriptor

param
an ejb bundle descriptor

        DOLUtils.getDefaultLogger().info("Ejb Bundle " + bundleDescriptor.getName());
    
public voidaccept(com.sun.enterprise.deployment.EjbDescriptor ejb)
visits an ejb descriptor

param
ejb descriptor

        DOLUtils.getDefaultLogger().info("==================");                
        DOLUtils.getDefaultLogger().info(ejb.getType() + " Bean " + ejb.getName());        
	DOLUtils.getDefaultLogger().info("\thomeClassName " + ejb.getHomeClassName());
	DOLUtils.getDefaultLogger().info("\tremoteClassName " + ejb.getRemoteClassName());
	DOLUtils.getDefaultLogger().info("\tlocalhomeClassName " +ejb.getLocalHomeClassName());
	DOLUtils.getDefaultLogger().info("\tlocalClassName " + ejb.getLocalClassName());
	DOLUtils.getDefaultLogger().info("\tremoteBusinessIntfs " + ejb.getRemoteBusinessClassNames());
	DOLUtils.getDefaultLogger().info("\tlocalBusinessIntfs " + ejb.getLocalBusinessClassNames());

	DOLUtils.getDefaultLogger().info("\tjndiName " + ejb.getJndiName());        
	DOLUtils.getDefaultLogger().info("\tejbClassName " + ejb.getEjbClassName());
	DOLUtils.getDefaultLogger().info("\ttransactionType " + ejb.getTransactionType());
        if (ejb.getUsesCallerIdentity() == false) {
            DOLUtils.getDefaultLogger().info("\trun-as role " + ejb.getRunAsIdentity());             
        } else {
            DOLUtils.getDefaultLogger().info("\tuse-caller-identity " + ejb.getUsesCallerIdentity()); 
        }
    
public voidaccept(com.sun.enterprise.deployment.types.EjbReference ejbRef)
visits an ejb reference for the last J2EE component visited

param
the ejb reference

        DOLUtils.getDefaultLogger().info(ejbRef.toString());
    
public voidaccept(com.sun.enterprise.deployment.types.MessageDestinationReferencer referencer)

        DOLUtils.getDefaultLogger().info
            (referencer.getMessageDestinationLinkName());
    
public voidaccept(com.sun.enterprise.deployment.WebService webService)

        DOLUtils.getDefaultLogger().info(webService.getName());
    
public voidaccept(com.sun.enterprise.deployment.ServiceReferenceDescriptor serviceRef)

        DOLUtils.getDefaultLogger().info(serviceRef.getName());
    
public voidaccept(com.sun.enterprise.deployment.MethodPermission pm, java.util.Iterator methods)
visits a method permission and permitted methods for the last J2EE component visited

param
ejb descriptor the role is referenced from
param
method permission
param
the methods associated with the above permission

        DOLUtils.getDefaultLogger().info("For method permission : " + pm.toString());
        while (methods.hasNext()) {
            DOLUtils.getDefaultLogger().info("\t"  + ((MethodDescriptor) methods.next()).prettyPrint());
        }