From ffd0e6c0b515800fd78ff9208e2eb68d51d29419 Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Wed, 1 May 2024 14:18:36 +0530 Subject: [PATCH] FISH-8309 Copyright year and comments --- .../com/sun/enterprise/deployment/BundleDescriptor.java | 8 ++++++-- .../sun/enterprise/deployment/archivist/Archivist.java | 2 +- .../deployment/descriptor/EjbBundleDescriptorImpl.java | 6 +++++- .../ejb/deployment/descriptor/EjbDescriptor.java | 5 +++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/BundleDescriptor.java b/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/BundleDescriptor.java index 8d5ca49225c..97c89ca7575 100644 --- a/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/BundleDescriptor.java +++ b/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/BundleDescriptor.java @@ -37,7 +37,7 @@ * only if the new code is made subject to such option by the copyright * holder. */ -// Portions Copyright [2016-2021] [Payara Foundation and/or its affiliates] +// Portions Copyright [2016-2024] [Payara Foundation and/or its affiliates] package com.sun.enterprise.deployment; @@ -604,8 +604,12 @@ public void print(StringBuilder toStringBuilder) { @Override public abstract ArchiveType getModuleType(); + /** + * Processes the bundle descriptor. + * This method should be overridden in subclasses to provide specific processing logic + * for the bundle descriptor. + */ public void processBundleDescriptor() { - } /** diff --git a/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/archivist/Archivist.java b/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/archivist/Archivist.java index 3eaf01bec88..e9d7b1c8d7a 100644 --- a/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/archivist/Archivist.java +++ b/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/archivist/Archivist.java @@ -37,7 +37,7 @@ * only if the new code is made subject to such option by the copyright * holder. */ -// Portions Copyright [2020-2021] [Payara Foundation and/or its affiliates.] +// Portions Copyright [2020-2024] [Payara Foundation and/or its affiliates.] package com.sun.enterprise.deployment.archivist; diff --git a/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbBundleDescriptorImpl.java b/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbBundleDescriptorImpl.java index db43eff53a5..b5abdfcd210 100644 --- a/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbBundleDescriptorImpl.java +++ b/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbBundleDescriptorImpl.java @@ -37,7 +37,7 @@ * only if the new code is made subject to such option by the copyright * holder. */ -// Portions Copyright [2016-2019] [Payara Foundation and/or its affiliates] +// Portions Copyright [2016-2024] [Payara Foundation and/or its affiliates] package org.glassfish.ejb.deployment.descriptor; @@ -355,6 +355,10 @@ public Collection getDescriptorIds() { return ejbIDs; } + /** + * Processes the bundle descriptor by invoking the processing of each EjbDescriptor. + * It is assumed that the ejbs collection is already populated with EjbDescriptor instances. + */ public void processBundleDescriptor() { for (EjbDescriptor ejbDescriptor : ejbs) { ejbDescriptor.processDescriptor(); diff --git a/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbDescriptor.java b/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbDescriptor.java index 379e92acf02..eb390741b69 100644 --- a/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbDescriptor.java +++ b/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbDescriptor.java @@ -2373,6 +2373,11 @@ public void setEjbBundleDescriptor(EjbBundleDescriptorImpl bundleDescriptor) { this.bundleDescriptor = bundleDescriptor; } + /** + * Processes the descriptor by adding various descriptors and properties + * from the root bundle descriptor. + * It is expected that the bundle descriptor is already set before calling this method. + */ public void processDescriptor() { if (this.bundleDescriptor != null) { for (Object ejbRefObj : this.bundleDescriptor.getEjbReferenceDescriptors()) {