Interface ModuleComponentNamer

All Known Implementing Classes:
OciModuleComponentNamer

public interface ModuleComponentNamer
Implementors of these are responsible for choosing the best TypeName for any ModuleComponent being generated. Note that this provider will only be called if there is some ambiguity in choosing a name (e.g., there are no exports or there is no module-info for the module being processed, etc.)
  • Method Details

    • suggestedPackageName

      Optional<String> suggestedPackageName(Collection<TypeName> serviceActivatorTypeNames)
      Implementors should return the suggested ModuleComponent package name, or empty to abstain from naming.
      Parameters:
      serviceActivatorTypeNames - the set of activator type names to be generated
      Returns:
      the suggested package name for the component module, or empty to abstain from naming