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 ); }
public void initialize() throws InitializationException { try { dispatcher = (DefaultSecDispatcher) plexusContainer.lookup( SecDispatcher.class, "maven" ); } catch ( ComponentLookupException e ) { throw new InitializationException( e.getMessage(), e ); } }
public void initialize() throws InitializationException { try { dispatcher = (DefaultSecDispatcher) plexusContainer.lookup( SecDispatcher.class, "maven" ); } catch ( ComponentLookupException e ) { throw new InitializationException( e.getMessage(), e ); } }
private void configureEncoder() throws InitializationException { String encoder = config.getString( PASSWORD_ENCODER ); if ( encoder != null ) { try { this.passwordEncoder = (PasswordEncoder) plexus.lookup( PasswordEncoder.ROLE, encoder ); } catch ( ComponentLookupException e ) { throw new InitializationException( "Unable to lookup password encoder.", e ); } } }
/** * Initialize this tool once it's been instantiated and composed, in order to start up the * MavenInvoker instance. */ public void initialize() throws InitializationException { try { startInvoker(); } catch ( IOException e ) { throw new InitializationException( "Error detecting maven home.", e ); } }
public void initialize() throws InitializationException { try { Settings settings = getSettings(); resolveParameters( settings ); } catch ( Exception e ) { throw new InitializationException( "Can't initialize '" + getClass().getName() + "'", e ); } }
public void initialize() throws InitializationException { try { Settings settings = getSettings(); resolveParameters( settings ); } catch ( Exception e ) { throw new InitializationException( "Can't initialize '" + getClass().getName() + "'", e ); } }
public void initialize() throws InitializationException { try { Settings settings = getSettings(); resolveParameters( settings ); } catch ( Exception e ) { throw new InitializationException( "Can't initialize '" + getClass().getName() + "'", e ); } } }
public void initialize() throws InitializationException { try { initializeDefaultContinuumBuildDefintions(); } catch ( BuildDefinitionServiceException e ) { throw new InitializationException( e.getMessage(), e ); } }
public void initialize() throws InitializationException { try { initializeDefaultContinuumBuildDefintions(); } catch ( BuildDefinitionServiceException e ) { throw new InitializationException( e.getMessage(), e ); } }
public void initialize() throws InitializationException { try { this.scheduler.submit(getAction(), this); } catch (Exception e) { throw new InitializationException( "Couldn't calculate artifact usage while initializing server", e); } }
public void initialize() throws InitializationException { try { SchedulerFactory factory = new StdSchedulerFactory( properties ); scheduler = (StdScheduler) factory.getScheduler(); } catch ( SchedulerException e ) { throw new InitializationException( "Cannot create scheduler.", e ); } }
public void initialize() throws InitializationException { try { SchedulerFactory factory = new StdSchedulerFactory( properties ); scheduler = (StdScheduler) factory.getScheduler(); } catch ( SchedulerException e ) { throw new InitializationException( "Cannot create scheduler.", e ); } }
public void initialize() throws InitializationException { registerWithEventBus(); try { initializeConfiguration(); } catch ( ConfigurationException e ) { throw new InitializationException( "Cannot configure the component!", e ); } }
public void initialize() throws InitializationException { if ( StringUtils.isEmpty( getSmtpHost() ) ) { throw new InitializationException( "Error in configuration: Missing smtpHost." ); } if ( getSmtpPort() == 0 ) { setSmtpPort( DEFAULT_SMTP_PORT ); } }
public void initialize() throws InitializationException { this.io = ShellHolder.get().getIo(); try { this.reader = new ConsoleReader( io.streams.in, io.out, io.getTerminal()); } catch (IOException e) { throw new InitializationException(e.getMessage(), e); } }
public void initialize() throws InitializationException { pmf = jdoFactory.getPersistenceManagerFactory(); if ( pmf instanceof PersistenceManagerFactoryImpl ) { PersistenceManagerFactoryImpl jpoxpmf = (PersistenceManagerFactoryImpl) pmf; if ( !StringUtils.equals( "JDK_DEFAULT_TIMEZONE", jpoxpmf.getDateTimezone() ) ) { throw new InitializationException( "The JdoFactory property 'org.jpox.rdbms.dateTimezone' MUST BE " + "Set to 'JDK_DEFAULT_TIMEZONE' in order for jpox and JdoKeyManager to operate correctly." ); } } }
public void initialize() throws InitializationException { if ( StringUtils.isEmpty( getSmtpHost() ) ) { throw new InitializationException( "Error in configuration: Missing smtpHost." ); } if ( getSmtpPort() == 0 ) { setSmtpPort( DEFAULT_SMTP_PORT ); } setUsername( super.getUsername() ); setSslMode( super.isSslMode() ); updateProps(); }
public void initialize() throws InitializationException { super.initialize(); if ( cacheManager.cacheExists( getName() ) ) { throw new InitializationException( "A previous cache with name [" + getName() + "] exists." ); } boolean overflowToDisk = false; cache = new Cache( getName(), getMaxElementsInMemory(), getMemoryStoreEvictionPolicy(), overflowToDisk, null, isEternal(), getTimeToLiveSeconds(), getTimeToIdleSeconds(), false, 100, null ); cacheManager.addCache( cache ); } }
public void initialize() throws InitializationException { super.initialize(); if ( cacheManager.cacheExists( getName() ) ) { throw new InitializationException( "A previous cache with name [" + getName() + "] exists." ); } cache = new Cache( getName(), getMaxElementsInMemory(), getMemoryStoreEvictionPolicy(), isOverflowToDisk(), getDiskStorePath(), isEternal(), getTimeToLiveSeconds(), getTimeToIdleSeconds(), isDiskPersistent(), getDiskExpiryThreadIntervalSeconds(), null ); cacheManager.addCache( cache ); }