Skip to content

Commit 6ca54a4

Browse files
committed
enh: jandex deploy
1 parent 1022175 commit 6ca54a4

File tree

44 files changed

+1462
-1240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1462
-1240
lines changed

appserver/common/annotation-framework/osgi.bundle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@
3737
# only if the new code is made subject to such option by the copyright
3838
# holder.
3939
#
40+
# Portions Copyright [2025] [Payara Foundation and/or its affiliates]
4041

4142
-exportcontents: \
4243
org.glassfish.apf; \
4344
org.glassfish.apf.context; \
4445
org.glassfish.apf.factory; \
46+
org.glassfish.apf.jandex; \
4547
org.glassfish.apf.impl; version=${project.osgi.version}
4648

appserver/common/annotation-framework/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@
106106
<artifactId>common-util</artifactId>
107107
<version>${project.version}</version>
108108
</dependency>
109+
<dependency>
110+
<groupId>fish.payara.server.internal.deployment</groupId>
111+
<artifactId>deployment-common</artifactId>
112+
<version>${project.version}</version>
113+
</dependency>
114+
<dependency>
115+
<groupId>fish.payara.server.internal.core</groupId>
116+
<artifactId>kernel</artifactId>
117+
<version>${project.version}</version>
118+
</dependency>
109119
<dependency>
110120
<groupId>fish.payara.server.internal.common</groupId>
111121
<artifactId>internal-api</artifactId>

appserver/common/annotation-framework/src/main/java/org/glassfish/apf/impl/JavaEEScanner.java

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* only if the new code is made subject to such option by the copyright
3838
* holder.
3939
*/
40-
// Portions Copyright [2018] Payara Foundation and/or affiliates
40+
// Portions Copyright [2018-2025] Payara Foundation and/or affiliates
4141

4242
/*
4343
* JavaEEScanner.java
@@ -47,8 +47,6 @@
4747
package org.glassfish.apf.impl;
4848

4949
import org.glassfish.apf.ComponentInfo;
50-
import org.glassfish.hk2.classmodel.reflect.Parser;
51-
import org.glassfish.hk2.classmodel.reflect.ParsingContext;
5250
import org.glassfish.hk2.classmodel.reflect.Types;
5351

5452
import java.io.File;
@@ -64,24 +62,14 @@ public abstract class JavaEEScanner {
6462
Types types;
6563

6664
public ComponentInfo getComponentInfo(Class componentImpl) {
67-
return new ComponentDefinition(componentImpl);
65+
throw new UnsupportedOperationException("No longer supported");
6866
}
6967

7068
protected void initTypes(File file) throws IOException {
71-
ParsingContext context = new ParsingContext.Builder().build();
72-
try (Parser cp = new Parser(context)) {
73-
cp.parse(file, null);
74-
try {
75-
cp.awaitTermination();
76-
} catch (InterruptedException e) {
77-
throw new IOException(e);
78-
}
79-
types = cp.getContext().getTypes();
80-
}
69+
throw new UnsupportedOperationException("No longer supported");
8170
}
8271

8372
public Types getTypes() {
84-
return types;
73+
throw new UnsupportedOperationException("No longer supported");
8574
}
86-
8775
}

appserver/common/annotation-framework/src/main/java/org/glassfish/apf/impl/ProcessingContextImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
*
5454
* @author Jerome ochez
5555
*/
56+
@Deprecated(forRemoval = true)
5657
class ProcessingContextImpl implements ProcessingContext {
5758

5859
protected AnnotationProcessor processor;

0 commit comments

Comments
 (0)