Class SokletProcessor

All Implemented Interfaces:
Processor

Soklet's standard Annotation Processor which is used to generate lookup tables of Resource Method definitions at compile time as well as prevent usage errors that are detectable by static analysis.

This Annotation Processor ensures Resource Methods annotated with ServerSentEventSource are declared as returning an instance of HandshakeResult.

Your build system should ensure this Annotation Processor is available at compile time. Follow the instructions below to make your application conformant:

Using javac directly:

javac -parameters -processor com.soklet.SokletProcessor ...[rest of javac command elided]
Using Maven:
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>...</version>
    <configuration>
        <release>...</release>
        <compilerArgs>
            <!-- Rest of args elided -->
            <arg>-parameters</arg>
            <arg>-processor</arg>
            <arg>com.soklet.SokletProcessor</arg>
        </compilerArgs>
    </configuration>
</plugin>
Using Gradle:
def sokletVersion = "2.0.0" // (use your actual version)

dependencies {
  // Soklet used by your code at compile/run time
  implementation "com.soklet:soklet:${sokletVersion}"

  // Same artifact also provides the annotation processor
  annotationProcessor "com.soklet:soklet:${sokletVersion}"

  // If tests also need processing (optional)
  testAnnotationProcessor "com.soklet:soklet:${sokletVersion}"
}
Author:
Mark Allen