@SuppressWarnings("unchecked") public synchronized <T> void addComponent( T component, String role, String roleHint ) { ComponentDescriptor descriptor = new ComponentDescriptor(component.getClass(), null ); descriptor.setRole( role ); descriptor.setRoleHint( roleHint ); Key key = new Key( descriptor.getRealm(), role, roleHint ); unmanagedComponents.put( key, component ); }
cd.setRoleHint( PlexusConstants.PLEXUS_DEFAULT_HINT );
cd.setRoleHint( PlexusConstants.PLEXUS_DEFAULT_HINT );
cd.setRoleHint( configuration.getChild( "role-hint" ).getValue() );
public void addComponent( Object component, String role ) throws ComponentRepositoryException { ComponentDescriptor cd = new ComponentDescriptor(); cd.setRole( role ); cd.setRoleHint( PlexusConstants.PLEXUS_DEFAULT_HINT ); cd.setImplementation( role ); addComponentDescriptor( cd ); }
private static <T> ComponentDescriptor<T> newComponentDescriptor( final String role, final PlexusBean<T> bean ) { final ComponentDescriptor<T> cd = new ComponentDescriptor<T>(); cd.setRole( role ); cd.setRoleHint( bean.getKey() ); cd.setImplementationClass( bean.getImplementationClass() ); cd.setDescription( bean.getDescription() ); return cd; }
UserManager.class.getName(), "legacy" ); componentDescriptor.setRoleHint( newHint ); try
UserManager.class.getName(), "legacy" ); componentDescriptor.setRoleHint( newHint ); try
cd.setRoleHint( PlexusConstants.PLEXUS_DEFAULT_HINT );
pcd.setRoleHint(componentDescriptor.getRoleHint()); pcd.setImplementation(componentDescriptor.getImplementation().getName());
cd.setRoleHint( PlexusConstants.PLEXUS_DEFAULT_HINT );
if ( namedAnno != null ) component.setRoleHint( filterEmptyAsNull( namedAnno.value() ) ); component.setRoleHint( component.getImplementation() );
componentDescriptor.setRoleHint( roleHint );
component.setRoleHint(filterEmptyAsNull(anno.hint()));
cd.setRoleHint( configuration.getChild( "role-hint" ).getValue() );
componentDescriptor.setRoleHint( roleHint );