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; } } }