@Override public void visitEnd() { if ( singleton ) { type = type.toSingleton(); } } }
if ( type.name().startsWith( "EXTENSION" ) ) if ( !type.isSingleton() )
@Override public AnnotationVisitor visitAnnotation( final String desc, final boolean visible ) { if ( type.isComponent() && NAMED_DESC.equals( desc ) ) { return namedVisitor; } if ( null != repositoryTypes && REPOSITORY_TYPE_DESC.equals( desc ) ) { return repositoryTypeVisitor; } return super.visitAnnotation( desc, visible ); }
private void scanInterfaces( final String... interfaces ) throws IOException { // look for @ExtensionPoint / @Managed for ( final String i : interfaces ) { // check cached results type = knownTypes.get( i ); if ( null == type ) { searchForComponentType( i ); } if ( type.isComponent() ) { // we now know the Plexus role setRole( i.replace( '/', '.' ) ); break; } } }