Skip to content

Commit

Permalink
FISH-8309 Link Parent Descriptor resources after annotation processing
Browse files Browse the repository at this point in the history
  • Loading branch information
jGauravGupta committed Apr 30, 2024
1 parent e18a3d7 commit a89b7e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ public void print(StringBuilder toStringBuilder) {
*/
@Override
public abstract ArchiveType getModuleType();

public void processBundleDescriptor() {

}

/**
* @return the visitor for this bundle descriptor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public void postRuntimeDDsRead(T descriptor,
*/
protected void postOpen(T descriptor, ReadableArchive archive)
throws IOException {
descriptor.processBundleDescriptor();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ public Collection<Long> getDescriptorIds() {
return ejbIDs;
}

public void processBundleDescriptor() {
for (EjbDescriptor ejbDescriptor : ejbs) {
ejbDescriptor.processDescriptor();
}
}

public void addEjb(EjbDescriptor ejbDescriptor) {
ejbDescriptor.setEjbBundleDescriptor(this);
ejbs.add(ejbDescriptor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,9 @@ public EjbBundleDescriptorImpl getEjbBundleDescriptor() {

public void setEjbBundleDescriptor(EjbBundleDescriptorImpl bundleDescriptor) {
this.bundleDescriptor = bundleDescriptor;

}

public void processDescriptor() {
if (this.bundleDescriptor != null) {
for (Object ejbRefObj : this.bundleDescriptor.getEjbReferenceDescriptors()) {
addEjbReferenceDescriptor((EjbReference) ejbRefObj);
Expand Down

0 comments on commit a89b7e8

Please sign in to comment.