/** * For testing purposes only. */ @Deprecated public RequirementImpl( final Class<?> role, final boolean optional, final String... hints ) { this( new LoadedClass<Object>( role ), optional, Arrays.asList( hints ) ); }
@Override public void visitEnd() { if ( null != implementation ) { final Component component = componentVisitor.getComponent( space ); if ( null != component ) { final Class<?> role = component.role(); if ( implementation.equals( role.getName() ) ) { // direct binding, make sure it's valid InjectionPoint.forConstructorOf( role ); } plexusTypeListener.hear( component, new LoadedClass<Object>( space.loadClass( implementation ) ), space ); } implementation = null; } }