The annotation processor should look for the presence of a javax.inject.Named annotation on the current javax.lang.model.element.Element being processed. Be that a class annotated with @ServiceExport, or a field or parameter annotated with @ServiceImport
This can easily be checked using:
javax.inject.Named named = componentClazz.getAnnotation(javax.inject.Named.class);
If present, the value should be used as a discriminator when generating the Peaberry imports and exports. For example:
bind(export(ServiceOne.class))
.annotatedWith(Names.named("someBeanName"))
.toProvider(service(ServiceOneImpl.class)
.attributes(attributes)
.export());