Class ServiceLoaderFileGenerator
java.lang.Object
org.infinispan.protostream.annotations.impl.processor.ServiceLoaderFileGenerator
Generate a META-INF/services resource file suitable for
ServiceLoader mechanism.- Since:
- 4.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddProvider(String providerClass, Element originatingElement) private static voidwriteServiceFile(Collection<String> services, OutputStream out) (package private) voidwriteServiceFile(Filer filer)
-
Field Details
-
META_INF_SERVICES
- See Also:
-
resourceFile
-
providers
-
originatingElements
-
-
Constructor Details
-
ServiceLoaderFileGenerator
ServiceLoaderFileGenerator(Class<?> serviceInterface)
-
-
Method Details
-
addProvider
-
writeServiceFile
- Throws:
IOException
-
readServiceFile
- Throws:
IOException
-
writeServiceFile
private static void writeServiceFile(Collection<String> services, OutputStream out) throws IOException - Throws:
IOException
-