Class ComponentValidator
- java.lang.Object
-
- com.sun.enterprise.deployment.util.DefaultDOLVisitor
-
- com.sun.enterprise.deployment.util.ComponentValidator
-
- All Implemented Interfaces:
ComponentVisitor,DescriptorVisitor
- Direct Known Subclasses:
ApplicationValidator,ConnectorValidator,EjbBundleValidator
public class ComponentValidator extends DefaultDOLVisitor implements ComponentVisitor
- Author:
- dochez
-
-
Field Summary
Fields Modifier and Type Field Description protected Applicationapplicationprotected BundleDescriptorbundleDescriptorstatic LoggerdeplLogger
-
Constructor Summary
Constructors Constructor Description ComponentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(BundleDescriptor bundleDescriptor)visits a Jakarta EE component bundle descriptor.protected voidaccept(InjectionCapable injectable)visits all entries within the component environment for which isInjectable() == true.protected voidaccept(MessageDestinationDescriptor msgDest)visits an message destination for the last J2EE component visitedprotected voidaccept(MessageDestinationReferenceDescriptor msgDestRef)Sets the JNDI name to default if not already setprotected voidaccept(ResourceEnvReferenceDescriptor resourceEnvRef)visits an resource environment reference for the last J2EE component visitedprotected voidaccept(ResourceReferenceDescriptor resRef)visits an resource reference for the last J2EE component visitedprotected voidaccept(ServiceReferenceDescriptor serviceRef)Visits a service reference for the last J2EE component visitedprotected voidaccept(EjbReference ejbRef)visits an ejb reference for the last J2EE component visitedprotected voidaccept(MessageDestinationReferencer msgDestReferencer)Visits a message destination referencer for the last J2EE component visitedprotected voidacceptWithCL(InjectionCapable injectable)protected voidacceptWithoutCL(InjectionCapable injectable)protected voidcomputeRunAsPrincipalDefault(RunAsIdentityDescriptor runAs, Application application)Set a default RunAs principal to given RunAsIdentityDescriptor if necessary.protected ApplicationgetApplication()protected BundleDescriptorgetBundleDescriptor()protected StringgetDefaultEjbJndiName(String intfName)protected EjbBundleDescriptorgetEjbBundleDescriptor()protected EjbDescriptorgetEjbDescriptor()protected Collection<? extends EjbDescriptor>getEjbDescriptors()-
Methods inherited from class com.sun.enterprise.deployment.util.DefaultDOLVisitor
accept, getSubDescriptorVisitor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.deployment.common.DescriptorVisitor
accept, getSubDescriptorVisitor
-
-
-
-
Field Detail
-
deplLogger
public static final Logger deplLogger
-
bundleDescriptor
protected BundleDescriptor bundleDescriptor
-
application
protected Application application
-
-
Method Detail
-
getApplication
protected Application getApplication()
- Returns:
- the Application object if any
-
getBundleDescriptor
protected BundleDescriptor getBundleDescriptor()
- Returns:
- the bundleDescriptor we are visiting
-
accept
public void accept(BundleDescriptor bundleDescriptor)
Description copied from interface:ComponentVisitorvisits a Jakarta EE component bundle descriptor.- Specified by:
acceptin interfaceComponentVisitor- Overrides:
acceptin classDefaultDOLVisitor
-
accept
protected void accept(MessageDestinationReferencer msgDestReferencer)
Visits a message destination referencer for the last J2EE component visited- Overrides:
acceptin classDefaultDOLVisitor- Parameters:
msgDestReferencer- the message destination referencer
-
getDefaultEjbJndiName
protected String getDefaultEjbJndiName(String intfName)
- Parameters:
intfName-- Returns:
- default jndi name for a given interface name
-
accept
protected void accept(EjbReference ejbRef)
Description copied from class:DefaultDOLVisitorvisits an ejb reference for the last J2EE component visited- Overrides:
acceptin classDefaultDOLVisitor- Parameters:
ejbRef- the ejb reference
-
getEjbDescriptors
protected Collection<? extends EjbDescriptor> getEjbDescriptors()
-
getEjbDescriptor
protected EjbDescriptor getEjbDescriptor()
-
getEjbBundleDescriptor
protected EjbBundleDescriptor getEjbBundleDescriptor()
-
accept
protected void accept(ServiceReferenceDescriptor serviceRef)
Visits a service reference for the last J2EE component visited- Overrides:
acceptin classDefaultDOLVisitor- Parameters:
serviceRef- the service reference
-
accept
protected void accept(ResourceReferenceDescriptor resRef)
Description copied from class:DefaultDOLVisitorvisits an resource reference for the last J2EE component visited- Overrides:
acceptin classDefaultDOLVisitor- Parameters:
resRef- the resource reference
-
accept
protected void accept(ResourceEnvReferenceDescriptor resourceEnvRef)
Description copied from class:DefaultDOLVisitorvisits an resource environment reference for the last J2EE component visited- Overrides:
acceptin classDefaultDOLVisitor- Parameters:
resourceEnvRef- the resource environment reference
-
accept
protected void accept(MessageDestinationReferenceDescriptor msgDestRef)
Sets the JNDI name to default if not already set- Parameters:
msgDestRef-
-
accept
protected void accept(MessageDestinationDescriptor msgDest)
Description copied from class:DefaultDOLVisitorvisits an message destination for the last J2EE component visited- Overrides:
acceptin classDefaultDOLVisitor- Parameters:
msgDest- the message destination
-
accept
protected void accept(InjectionCapable injectable)
visits all entries within the component environment for which isInjectable() == true.- Parameters:
injectable- InjectionCapable environment dependency
-
acceptWithCL
protected void acceptWithCL(InjectionCapable injectable)
-
acceptWithoutCL
protected void acceptWithoutCL(InjectionCapable injectable)
-
computeRunAsPrincipalDefault
protected void computeRunAsPrincipalDefault(RunAsIdentityDescriptor runAs, Application application)
Set a default RunAs principal to given RunAsIdentityDescriptor if necessary.- Parameters:
runAs-application-- Throws:
RuntimeException
-
-