@Internal public abstract class AbstractClassWriterOutputVisitor extends java.lang.Object implements ClassWriterOutputVisitor
ClassWriterOutputVisitor
interface that deals with service descriptors in a
common way across Java and Groovy.Constructor and Description |
---|
AbstractClassWriterOutputVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Finish writing and flush any service entries to disk.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getServiceEntries()
The META-INF/services entries to write.
|
void |
visitServiceDescriptor(java.lang.String type,
java.lang.String classname)
Allows adding a class that will be written to the
META-INF/services file under the given type and class
name. |
void |
writeServiceEntries(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> serviceEntries)
Writes the service entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitClass, visitClass, visitGeneratedFile, visitMetaInfFile, visitServiceDescriptor
public final java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getServiceEntries()
ClassWriterOutputVisitor
getServiceEntries
in interface ClassWriterOutputVisitor
public final void visitServiceDescriptor(java.lang.String type, java.lang.String classname)
ClassWriterOutputVisitor
META-INF/services
file under the given type and class
name.visitServiceDescriptor
in interface ClassWriterOutputVisitor
type
- the fully qualified service nameclassname
- the fully qualified classnamepublic final void finish()
ClassWriterOutputVisitor
finish
in interface ClassWriterOutputVisitor
public void writeServiceEntries(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> serviceEntries)
serviceEntries
- The service entries