Class AutoServiceProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
com.google.auto.service.processor.AutoServiceProcessor
All Implemented Interfaces:
Processor

@SupportedOptions({"debug","verify"}) public class AutoServiceProcessor extends AbstractProcessor
Processes AutoService annotations and generates the service provider configuration files described in ServiceLoader.

Processor Options:

  • debug - turns on debug statements
  • Field Details

    • MISSING_SERVICES_ERROR

      static final String MISSING_SERVICES_ERROR
      See Also:
    • providers

      private com.google.common.collect.Multimap<String,String> providers
      Maps the class names of service provider interfaces to the class names of the concrete classes which implement them.

      For example, "com.google.apphosting.LocalRpcService" -> "com.google.apphosting.datastore.LocalDatastoreService"

  • Constructor Details

    • AutoServiceProcessor

      public AutoServiceProcessor()
  • Method Details