本文整理匯總了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 );
}
}
示例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 );
}
}
示例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 );
}
}
示例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);
}
}
}
示例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);
}
}
}