public Map buildMapWithRole()

in src/main/java/org/apache/archiva/redback/components/springutils/ComponentContainer.java [158:176]


    public <T> Map<String, T> buildMapWithRole( Class<T> clazz )
    {
        try
        {
            Map<String, T> beansOfType = (Map<String, T>) classBeansOfType.get( clazz.getName() );
            if ( beansOfType == null )
            {
                Map<String, T> map = this.applicationContext.getBeansOfType( clazz );
                beansOfType = buildMapWithRole( map );
                classBeansOfType.put( clazz.getName(), beansOfType );
            }
            return beansOfType;
        }
        catch ( Throwable e )
        {
            log.error( e.getMessage(), e );
            throw new RuntimeException( e.getMessage(), e );
        }
    }