当前位置: 首页>>代码示例>>Java>>正文


Java InitializationException类代码示例

本文整理汇总了Java中org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException的典型用法代码示例。如果您正苦于以下问题:Java InitializationException类的具体用法?Java InitializationException怎么用?Java InitializationException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


InitializationException类属于org.codehaus.plexus.personality.plexus.lifecycle.phase包,在下文中一共展示了InitializationException类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CustomModelBuilder

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
public CustomModelBuilder(Model model) {
    ExecuteManager executeManager = new ExecuteManagerImpl();
    setProp(executeManager.getClass(), executeManager, "log",
            new PlexusLoggerAdapter(LoggerFactory.getLogger(ExecuteManagerImpl.class)));
    setProp(ModelBuilder.class, this, "executeManager", executeManager);
    setProp(ModelBuilder.class, this, "log",
            new PlexusLoggerAdapter(LoggerFactory.getLogger(ModelBuilder.class)));
    try {
        initialize();
    } catch (InitializationException e) {
        throw new RuntimeException(e);
    }
    Map factories = (Map) getProp(FactoryBuilderSupport.class, this, "factories");
    factories.remove("project");
    ModelFactory modelFactory = new ModelFactory(model);
    registerFactory(modelFactory.getName(), null, modelFactory);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:18,代码来源:CustomModelBuilder.java

示例2: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
@Override
public void initialize() throws InitializationException {
    if (apolloDataSourceProviderPresent) {
        try {
            m_delegate = (DataSourceProvider)(Class.forName(apolloDataSourceProviderClass).newInstance());
        } catch (Throwable ex) {
            m_logger.error("Loading apollo datasource provider failed", ex);
        }
    }
    if (m_delegate == null) {
        m_delegate = createDefaultDataSourceProvider();
    }
    if (m_delegate instanceof LogEnabled) {
        ((LogEnabled)m_delegate).enableLogging(m_logger);
    }
    logger.info("[initialize][DataSourceProvider]{}", m_delegate);
}
 
开发者ID:ctripcorp,项目名称:x-pipe,代码行数:18,代码来源:XpipeDataSourceProvider.java

示例3: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
@Override
public void initialize()
    throws InitializationException
{
    try
    {
        // First try to use SLF4J logging (available in Maven 3.1.0+)
        delegate = new Slf4jLoggerAdapter();
    }
    catch ( LinkageError e )
    {
        // Fall back to Plexus logger
        delegate = new PlexusLoggerAdapter( plexusLogger );
    }
}
 
开发者ID:fedora-java,项目名称:xmvn,代码行数:16,代码来源:DefaultLogger.java

示例4: interpolateProject

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
private void interpolateProject() throws InitializationException, Exception, ModelInterpolationException {
    StringSearchModelInterpolator interpolator = new StringSearchModelInterpolator(new DefaultPathTranslator());
    interpolator.enableLogging(new PlexusLoggerAdapter(embedder.getLogger()));
    interpolator.initialize();
    ProjectBuilderConfiguration config =  new DefaultProjectBuilderConfiguration();
    config.setLocalRepository(getLocalRepository());
    config.setGlobalProfileManager(getProfileManager());
    interpolator.interpolate(project.getModel(), project.getBasedir(), config, logger.isDebugEnabled());
}
 
开发者ID:strator-dev,项目名称:greenpepper,代码行数:10,代码来源:CommandLineRunner.java

示例5: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
@Override
 public void initialize() throws InitializationException {
     configuration = gitlabPluginConfiguration.getConfiguration();
     if (configuration != null) {
try {
	restClient = new CachingRestClient(configuration);
} catch (URISyntaxException use) {
	throw new InitializationException("Rest client init failed", use);
}
         configured = true;
     }
 }
 
开发者ID:jdamick,项目名称:nexus-gitlab-token-auth-plugin,代码行数:13,代码来源:DefaultGitlabDao.java

示例6: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
public void initialize()
    throws InitializationException
{
    String mavenVersion = rtInfo.getMavenVersion();

    if ( StringUtils.isEmpty( mavenVersion ) )
    {
        throw new InitializationException( "Unable to read Maven version from maven-core" );
    }

    applicationVersion = new DefaultArtifactVersion( mavenVersion );
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:13,代码来源:DefaultRuntimeInformation.java

示例7: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
@Override
public void initialize() throws InitializationException {
    this.converterLookup.registerConverter(new SeverityConfigurationConverter());
    this.converterLookup.registerConverter(new StoreLifeCycleConverter());
}
 
开发者ID:buschmais,项目名称:jqa-maven-plugin,代码行数:6,代码来源:CustomComponentConfigurator.java

示例8: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
@PostConstruct
public void initialize()
    throws InitializationException
{
    log.info( "Initialized {}", this.getClass().getName() );
}
 
开发者ID:ruikom,项目名称:apache-archiva,代码行数:7,代码来源:ArchivaRepositoryScanningTaskExecutor.java

示例9: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
@Override
   public void initialize() throws InitializationException {
    LOGGER.info(GITLAB_MSG + "Realm activated.");
	active.set(true);
}
 
开发者ID:jdamick,项目名称:nexus-gitlab-token-auth-plugin,代码行数:6,代码来源:GitlabAuthenticatingRealm.java

示例10: testInitialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
@Test
public void testInitialize() throws InitializationException, RemoteException {
    DefaultGitlabDao gitlab = new DefaultGitlabDao();
    assertNotNull(gitlab);
}
 
开发者ID:jdamick,项目名称:nexus-gitlab-token-auth-plugin,代码行数:6,代码来源:DefaultGitlabClientTest.java

示例11: initialize

import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; //导入依赖的package包/类
public void initialize()
    throws InitializationException
{
    interpolator = createInterpolator();
    recursionInterceptor = new PrefixAwareRecursionInterceptor( PROJECT_PREFIXES );
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:7,代码来源:AbstractStringBasedModelInterpolator.java


注:本文中的org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。