mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-24 16:34:53 +01:00
chore: shortened @RegisterBareInjector to @BareInjector
This commit is contained in:
parent
5c2d780acb
commit
c83c5eabef
2 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ public class LilleroProcessor extends AbstractProcessor {
|
||||||
.map(e -> (TypeElement) e)
|
.map(e -> (TypeElement) e)
|
||||||
.filter(this::isValidInjector)
|
.filter(this::isValidInjector)
|
||||||
.forEach(this::generateClasses);
|
.forEach(this::generateClasses);
|
||||||
} else if(annotation.getQualifiedName().contentEquals(RegisterBareInjector.class.getName())) {
|
} else if(annotation.getQualifiedName().contentEquals(BareInjector.class.getName())) {
|
||||||
TypeMirror injectorType = this.processingEnv.getElementUtils().getTypeElement("ftbsc.lll.IInjector").asType();
|
TypeMirror injectorType = this.processingEnv.getElementUtils().getTypeElement("ftbsc.lll.IInjector").asType();
|
||||||
for(Element e : roundEnv.getElementsAnnotatedWith(annotation)) {
|
for(Element e : roundEnv.getElementsAnnotatedWith(annotation)) {
|
||||||
if(this.processingEnv.getTypeUtils().isAssignable(e.asType(), injectorType))
|
if(this.processingEnv.getTypeUtils().isAssignable(e.asType(), injectorType))
|
||||||
|
|
|
@ -11,8 +11,8 @@ import java.lang.annotation.RetentionPolicy;
|
||||||
* (META-INF/services/ftbsc.lll.IInjector) without actually processing it. This can
|
* (META-INF/services/ftbsc.lll.IInjector) without actually processing it. This can
|
||||||
* be used to mix in a same project regular {@link IInjector}s and those generated
|
* be used to mix in a same project regular {@link IInjector}s and those generated
|
||||||
* by the processor.
|
* by the processor.
|
||||||
* @since 0.6.0
|
* @since 0.6.1
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.CLASS)
|
@Retention(RetentionPolicy.CLASS)
|
||||||
@java.lang.annotation.Target(ElementType.TYPE)
|
@java.lang.annotation.Target(ElementType.TYPE)
|
||||||
public @interface RegisterBareInjector {}
|
public @interface BareInjector {}
|
Loading…
Reference in a new issue