Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions appserver/common/annotation-framework/osgi.bundle
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@
# only if the new code is made subject to such option by the copyright
# holder.
#
# Portions Copyright [2025] [Payara Foundation and/or its affiliates]

-exportcontents: \
org.glassfish.apf; \
org.glassfish.apf.context; \
org.glassfish.apf.factory; \
org.glassfish.apf.jandex; \
org.glassfish.apf.impl; version=${project.osgi.version}

10 changes: 10 additions & 0 deletions appserver/common/annotation-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@
<artifactId>common-util</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>fish.payara.server.internal.deployment</groupId>
<artifactId>deployment-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>fish.payara.server.internal.core</groupId>
<artifactId>kernel</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>fish.payara.server.internal.common</groupId>
<artifactId>internal-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2018] Payara Foundation and/or affiliates
// Portions Copyright [2018-2025] Payara Foundation and/or affiliates

/*
* JavaEEScanner.java
Expand All @@ -47,8 +47,6 @@
package org.glassfish.apf.impl;

import org.glassfish.apf.ComponentInfo;
import org.glassfish.hk2.classmodel.reflect.Parser;
import org.glassfish.hk2.classmodel.reflect.ParsingContext;
import org.glassfish.hk2.classmodel.reflect.Types;

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

public ComponentInfo getComponentInfo(Class componentImpl) {
return new ComponentDefinition(componentImpl);
throw new UnsupportedOperationException("No longer supported");
}

protected void initTypes(File file) throws IOException {
ParsingContext context = new ParsingContext.Builder().build();
try (Parser cp = new Parser(context)) {
cp.parse(file, null);
try {
cp.awaitTermination();
} catch (InterruptedException e) {
throw new IOException(e);
}
types = cp.getContext().getTypes();
}
throw new UnsupportedOperationException("No longer supported");
}

public Types getTypes() {
return types;
throw new UnsupportedOperationException("No longer supported");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
*
* @author Jerome ochez
*/
@Deprecated(forRemoval = true)
class ProcessingContextImpl implements ProcessingContext {

protected AnnotationProcessor processor;
Expand Down
Loading