@Override public AnnotationVisitor visitAnnotation( final String desc, final boolean visible ) { final AnnotationVisitor annotationVisitor = plexusTypeVisitor.visitAnnotation( desc, visible ); return nexusType.isComponent() && NAMED_DESC.equals( desc ) ? namedHintVisitor : annotationVisitor; }
@Override public AnnotationVisitor visitAnnotation( final String desc, final boolean visible ) { final AnnotationVisitor annotationVisitor = plexusTypeVisitor.visitAnnotation( desc, visible ); return nexusType.isComponent() && NAMED_DESC.equals( desc ) ? namedHintVisitor : annotationVisitor; }
private void scanForNexusMarkers( final String clazz, final String[] interfaces ) { for ( final String i : interfaces ) { nexusType = nexusTypeCache.nexusType( space, i ); if ( nexusType.isComponent() ) { final AnnotationVisitor componentVisitor = getComponentVisitor(); componentVisitor.visit( "role", Type.getObjectType( i ) ); if ( nexusType != MarkedNexusTypes.MANAGED && nexusType != MarkedNexusTypes.MANAGED_SINGLETON ) { componentVisitor.visit( "hint", clazz ); } if ( !nexusType.isSingleton() ) { componentVisitor.visit( "instantiationStrategy", Strategies.PER_LOOKUP ); } break; } } }
private void scanForNexusMarkers( final String clazz, final String[] interfaces ) { for ( final String i : interfaces ) { nexusType = nexusTypeCache.nexusType( space, i ); if ( nexusType.isComponent() ) { final AnnotationVisitor componentVisitor = getComponentVisitor(); componentVisitor.visit( "role", Type.getObjectType( i ) ); if ( nexusType != MarkedNexusTypes.MANAGED && nexusType != MarkedNexusTypes.MANAGED_SINGLETON ) { componentVisitor.visit( "hint", clazz ); } if ( !nexusType.isSingleton() ) { componentVisitor.visit( "instantiationStrategy", Strategies.PER_LOOKUP ); } break; } } }