當前位置: 首頁>>代碼示例>>Java>>正文


Java ComponentLookupException.getMessage方法代碼示例

本文整理匯總了Java中org.codehaus.plexus.component.repository.exception.ComponentLookupException.getMessage方法的典型用法代碼示例。如果您正苦於以下問題:Java ComponentLookupException.getMessage方法的具體用法?Java ComponentLookupException.getMessage怎麽用?Java ComponentLookupException.getMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.codehaus.plexus.component.repository.exception.ComponentLookupException的用法示例。


在下文中一共展示了ComponentLookupException.getMessage方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: lookup

import org.codehaus.plexus.component.repository.exception.ComponentLookupException; //導入方法依賴的package包/類
public <T> T lookup( Class<T> clazz )
    throws PlexusSisuBridgeException
{
    ClassLoader ori = Thread.currentThread().getContextClassLoader();
    try
    {
        Thread.currentThread().setContextClassLoader( containerRealm );
        return plexusContainer.lookup( clazz );
    }
    catch ( ComponentLookupException e )
    {
        throw new PlexusSisuBridgeException( e.getMessage(), e );
    }
    finally
    {
        Thread.currentThread().setContextClassLoader( ori );
    }
}
 
開發者ID:ruikom,項目名稱:apache-archiva,代碼行數:19,代碼來源:PlexusSisuBridge.java

示例2: lookupList

import org.codehaus.plexus.component.repository.exception.ComponentLookupException; //導入方法依賴的package包/類
public <T> List<T> lookupList( Class<T> clazz )
    throws PlexusSisuBridgeException
{
    ClassLoader ori = Thread.currentThread().getContextClassLoader();

    try
    {
        Thread.currentThread().setContextClassLoader( containerRealm );
        return plexusContainer.lookupList( clazz );
    }
    catch ( ComponentLookupException e )
    {
        throw new PlexusSisuBridgeException( e.getMessage(), e );
    }
    finally
    {
        Thread.currentThread().setContextClassLoader( ori );
    }
}
 
開發者ID:ruikom,項目名稱:apache-archiva,代碼行數:20,代碼來源:PlexusSisuBridge.java

示例3: lookupMap

import org.codehaus.plexus.component.repository.exception.ComponentLookupException; //導入方法依賴的package包/類
public <T> Map<String, T> lookupMap( Class<T> clazz )
    throws PlexusSisuBridgeException
{
    ClassLoader ori = Thread.currentThread().getContextClassLoader();

    try
    {
        Thread.currentThread().setContextClassLoader( containerRealm );
        return plexusContainer.lookupMap( clazz );
    }
    catch ( ComponentLookupException e )
    {
        throw new PlexusSisuBridgeException( e.getMessage(), e );
    }
    finally
    {
        Thread.currentThread().setContextClassLoader( ori );
    }
}
 
開發者ID:ruikom,項目名稱:apache-archiva,代碼行數:20,代碼來源:PlexusSisuBridge.java

示例4: executeUserFilterComponents

import org.codehaus.plexus.component.repository.exception.ComponentLookupException; //導入方法依賴的package包/類
protected void executeUserFilterComponents(MavenResourcesExecution mavenResourcesExecution)
		throws MojoExecutionException, MavenFilteringException {

	if (mavenFilteringHints != null) {
		for (String hint : mavenFilteringHints) {
			try {
				mavenFilteringComponents.add((MavenResourcesFiltering) plexusContainer
						.lookup(MavenResourcesFiltering.class.getName(), hint));
			} catch (ComponentLookupException e) {
				throw new MojoExecutionException(e.getMessage(), e);
			}
		}
	} else {
		getLog().debug("no use filter components");
	}

	if (mavenFilteringComponents != null && !mavenFilteringComponents.isEmpty()) {
		getLog().debug("execute user filters");
		for (MavenResourcesFiltering filter : mavenFilteringComponents) {
			filter.filterResources(mavenResourcesExecution);
		}
	}
}
 
開發者ID:dajester2013,項目名稱:lucee-maven-plugin,代碼行數:24,代碼來源:LarCopySourcesMojo.java

示例5: executeUserFilterComponents

import org.codehaus.plexus.component.repository.exception.ComponentLookupException; //導入方法依賴的package包/類
/**
 * @param mavenResourcesExecution {@link MavenResourcesExecution}
 * @throws MojoExecutionException  in case of wrong lookup.
 * @throws MavenFilteringException in case of failure.
 * @since 2.5
 */
protected void executeUserFilterComponents(MavenResourcesExecution mavenResourcesExecution)
        throws MojoExecutionException, MavenFilteringException {

    if (mavenFilteringHints != null) {
        for (String hint : mavenFilteringHints) {
            try {
                // CHECKSTYLE_OFF: LineLength
                mavenFilteringComponents.add((MavenResourcesFiltering) plexusContainer.lookup(MavenResourcesFiltering.class.getName(), hint));
                // CHECKSTYLE_ON: LineLength
            } catch (ComponentLookupException e) {
                throw new MojoExecutionException(e.getMessage(), e);
            }
        }
    } else {
        getLog().debug("no use filter components");
    }

    if (mavenFilteringComponents != null && !mavenFilteringComponents.isEmpty()) {
        getLog().debug("execute user filters");
        for (MavenResourcesFiltering filter : mavenFilteringComponents) {
            filter.filterResources(mavenResourcesExecution);
        }
    }
}
 
開發者ID:walokra,項目名稱:markdown-page-generator-plugin,代碼行數:31,代碼來源:MdPageGeneratorMojo.java


注:本文中的org.codehaus.plexus.component.repository.exception.ComponentLookupException.getMessage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。