com.sun.enterprise.deployment.util
Class ApplicationValidator

java.lang.Object
  extended by com.sun.enterprise.deployment.util.DefaultDOLVisitor
      extended by com.sun.enterprise.deployment.util.ComponentValidator
          extended by com.sun.enterprise.deployment.util.EjbBundleValidator
              extended by com.sun.enterprise.deployment.util.ApplicationValidator
All Implemented Interfaces:
AppClientVisitor, ApplicationVisitor, ComponentVisitor, ConnectorVisitor, DescriptorVisitor, EjbBundleVisitor, EjbVisitor, ManagedBeanVisitor, WebBundleVisitor
Direct Known Subclasses:
WebValidatorWithoutCL

@Service(name="application_deploy")
public class ApplicationValidator
extends EjbBundleValidator
implements ApplicationVisitor, EjbBundleVisitor, EjbVisitor, ManagedBeanVisitor

This class is responsible for validating the loaded DOL classes and transform some of the raw XML information into refined values used by the DOL runtime

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.util.EjbBundleValidator
ejb, ejbBundleDescriptor
 
Fields inherited from class com.sun.enterprise.deployment.util.DefaultDOLVisitor
bundleDescriptor
 
Constructor Summary
ApplicationValidator()
           
 
Method Summary
 void accept(Application application)
          visit an application object
 void accept(ApplicationClientDescriptor appclientdescriptor)
          visits a appclient descriptor
 void accept(EjbBundleDescriptor bundleDescriptor)
          visits an ejb bundle descriptor
 void accept(ManagedBeanDescriptor managedBean)
           
 void accept(ServletFilterDescriptor descriptor)
          visit a servlet filter descriptor
 void accept(WebBundleDescriptor descriptor)
          visit a web bundle descriptor
 void accept(WebComponentDescriptor descriptor)
          visit a web component descriptor
protected  Application getApplication()
           
protected  BundleDescriptor getBundleDescriptor()
           
protected  java.util.Collection getEjbDescriptors()
           
 
Methods inherited from class com.sun.enterprise.deployment.util.EjbBundleValidator
accept, accept, accept, accept, accept, accept, accept, accept, computeRunAsPrincipalDefault
 
Methods inherited from class com.sun.enterprise.deployment.util.ComponentValidator
accept, accept
 
Methods inherited from class com.sun.enterprise.deployment.util.DefaultDOLVisitor
accept, accept, accept, accept, accept, accept, accept, accept, accept, acceptWithCL, acceptWithoutCL, getAppClientVisitor, getConnectorVisitor, getEjbBundleVisitor, getEjbVisitor, getWebBundleVisitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.enterprise.deployment.util.ApplicationVisitor
getAppClientVisitor, getConnectorVisitor, getEjbBundleVisitor, getWebBundleVisitor
 
Methods inherited from interface com.sun.enterprise.deployment.util.EjbBundleVisitor
accept, accept, getEjbVisitor
 
Methods inherited from interface com.sun.enterprise.deployment.util.EjbVisitor
accept, accept, accept, accept, accept
 
Methods inherited from interface com.sun.enterprise.deployment.util.ComponentVisitor
accept, accept, accept, accept, accept, accept, accept, accept, accept, accept
 
Methods inherited from interface com.sun.enterprise.deployment.util.DescriptorVisitor
accept
 

Constructor Detail

ApplicationValidator

public ApplicationValidator()
Method Detail

accept

public void accept(Application application)
visit an application object

Specified by:
accept in interface ApplicationVisitor
Overrides:
accept in class DefaultDOLVisitor
Parameters:
application - the application descriptor

accept

public void accept(EjbBundleDescriptor bundleDescriptor)
visits an ejb bundle descriptor

Specified by:
accept in interface EjbBundleVisitor
Overrides:
accept in class EjbBundleValidator
Parameters:
bundleDescriptor - an ejb bundle descriptor

accept

public void accept(ManagedBeanDescriptor managedBean)
Specified by:
accept in interface ManagedBeanVisitor
Overrides:
accept in class DefaultDOLVisitor

accept

public void accept(WebBundleDescriptor descriptor)
visit a web bundle descriptor

Specified by:
accept in interface WebBundleVisitor
Overrides:
accept in class DefaultDOLVisitor
Parameters:
descriptor - the web bundle descriptor

accept

public void accept(ApplicationClientDescriptor appclientdescriptor)
visits a appclient descriptor

Specified by:
accept in interface AppClientVisitor
Overrides:
accept in class DefaultDOLVisitor
Parameters:
appclientdescriptor - the application client descriptor

accept

public void accept(WebComponentDescriptor descriptor)
visit a web component descriptor

Specified by:
accept in interface WebBundleVisitor
Overrides:
accept in class DefaultDOLVisitor
Parameters:
descriptor - the web component

accept

public void accept(ServletFilterDescriptor descriptor)
Description copied from class: DefaultDOLVisitor
visit a servlet filter descriptor

Specified by:
accept in interface WebBundleVisitor
Overrides:
accept in class DefaultDOLVisitor

getEjbDescriptors

protected java.util.Collection getEjbDescriptors()
Overrides:
getEjbDescriptors in class EjbBundleValidator
Returns:
a vector of EjbDescriptor for this bundle

getApplication

protected Application getApplication()
Overrides:
getApplication in class EjbBundleValidator
Returns:
the Application object if any

getBundleDescriptor

protected BundleDescriptor getBundleDescriptor()
Overrides:
getBundleDescriptor in class EjbBundleValidator
Returns:
the bundleDescriptor we are validating


Copyright © 2012 GlassFish Community. All Rights Reserved.