@Deprecated public Map<String, Object> lookupMap( String role ) throws ComponentLookupException { return container.lookupMap( role ); }
public Map<String, Object> getPluginComponents( Plugin plugin, String role ) throws ComponentLookupException, PluginManagerException { MavenSession session = legacySupport.getSession(); PluginDescriptor pluginDescriptor; try { pluginDescriptor = pluginManager.getPluginDescriptor( plugin, session.getCurrentProject().getRemotePluginRepositories(), session.getRepositorySession() ); pluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null ); } catch ( Exception e ) { throw new PluginManagerException( plugin, e.getMessage(), e ); } ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader( pluginDescriptor.getClassRealm() ); return container.lookupMap( role ); } finally { Thread.currentThread().setContextClassLoader( oldClassLoader ); } }
public Map lookupMap( String role ) throws ComponentLookupException { return container.lookupMap( role ); }
public Map getComponentMap( String theRole ) throws ComponentLookupException { return container.lookupMap( theRole ); }
public Map<String, Object> lookupMap( final String role ) throws ComponentLookupException { return container.lookupMap( role ); }
public Map lookupMap( String role ) throws ComponentLookupException { return container.lookupMap( role ); }
@Override public Map<String, Object> getComponentMap( String theRole ) throws ComponentLookupException { return container.lookupMap( theRole ); }
/** * Gets the component map. * * @param role the role * @return the component map * @throws org.codehaus.plexus.component.repository.exception.ComponentLookupException * the component lookup exception */ public Map getComponentMap(String role) throws ComponentLookupException { return container.lookupMap(role); }
public Map lookupMap(String role) throws ComponentLookupException { return core.lookupMap(role); }
public Map lookupMap(String role) throws ComponentLookupException { return core.lookupMap(role); }
/** * {@inheritDoc} * * @see org.xwiki.component.manager.ComponentManager#lookupMap(Class) */ @SuppressWarnings("unchecked") public <T> Map<String, T> lookupMap(Class<T> role) throws ComponentLookupException { Map<String, T> result; try { result = this.plexusContainer.lookupMap(role.getName()); } catch (org.codehaus.plexus.component.repository.exception.ComponentLookupException e) { throw new ComponentLookupException("Failed to lookup components for role [" + role + "]", e); } return result; }
public String[] getSupportedProtocols() { try { Map<String,Wagon> wagonMap = getContainer().lookupMap( Wagon.ROLE ); List<String> protocols = new ArrayList<String>(); for ( Map.Entry<String,Wagon> entry : wagonMap.entrySet() ) { protocols.add( entry.getKey() ); } return (String[]) protocols.toArray( new String[protocols.size()] ); } catch ( ComponentLookupException e ) { throw new BuildException( "Unable to lookup Wagon providers", e ); } }
private String getSupportedProtocols() { try { Set<String> protocols = container.lookupMap( Wagon.class ).keySet(); return StringUtils.join( protocols.iterator(), ", " ); } catch ( ComponentLookupException e ) { // in the unexpected case there is a problem when instantiating a wagon provider getLog().error( e ); } return ""; }
Map componentsMap = container.lookupMap("org.richfaces.templatecompiler.elements.ElementsFactory");
Map factories = container.lookupMap( ToolchainFactory.ROLE ); List toRet = new ArrayList( ); if ( pers != null )
value = container.lookupMap( role );
distroDetectors = container.lookupMap( SystemDistributionDetector.ROLE );
assignment = container.lookupMap(role, roleHints, realm); } else if (Logger.class.equals(propertyType)) {
reusableConfigurationProcessors = reusableContainerCoreExtensions.lookupMap(AFConfigurationProcessor.class);
Map<String, Object> components = container.lookupMap( role );