/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (!partialMatch && value != null) { int flags = 0; if (ignoreCase) { flags = Pattern.CASE_INSENSITIVE; } pattern = Pattern.compile(value, flags); } else { pattern = null; } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == dataSource) { throw new ComponentInitializationException("DataSourceValidator: Data Source should not be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (objectLookupStrategy == null) { throw new ComponentInitializationException("Object lookup strategy cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (service == null) { throw new ComponentInitializationException("ReloadableService cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (realmSettings.isEmpty()) { throw new ComponentInitializationException("Realm collection cannot be empty"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); artifactStore = new ConcurrentHashMap<>(); if (cleanupInterval > 0) { cleanupTask = new Cleanup(); cleanupTaskTimer = new Timer(true); cleanupTaskTimer.schedule(cleanupTask, cleanupInterval * 1000, cleanupInterval * 1000); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (httpClient == null) { throw new ComponentInitializationException("HttpClient cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { Constraint.isNotNull(connectionFactory, "Connection factory must be non-null"); super.doInitialize(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { Constraint.isNotNull(attributeName, "Attribute Name should be non-null"); super.doInitialize(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (cookieManager == null) { throw new ComponentInitializationException("CookieManager cannot be null"); } }
@Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (directory == null) { throw new ComponentInitializationException("directory can not be null"); } // Check that the directory can be written to. if (!directory.canWrite()) { throw new ComponentInitializationException("Can not write to parent directory of output files"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == dataSource) { throw new ComponentInitializationException(getLogPrefix() + " No database connection provided"); } idEntrySelectSQL = "SELECT * FROM " + tableName + " WHERE "; deactivateSQL = "UPDATE " + tableName + " SET " + deactivationTimeColumn + "= ? WHERE " + persistentIdColumn + "= ?"; }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (httpClient == null) { throw new ComponentInitializationException("HttpClient cannot be null"); } if (objectMapper == null) { throw new ComponentInitializationException("ObjectMapper cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (httpClient == null) { throw new ComponentInitializationException("HttpClient cannot be null"); } else if (parserPool == null) { throw new ComponentInitializationException("ParserPool cannot be null"); } }
/** {@inheritDoc} */ @Override public void doInitialize() throws ComponentInitializationException { super.doInitialize(); ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); genericSerializer.initialize(); authnResultPrincipalSerializer.initialize(); if (principalSerializers.isEmpty()) { final PrincipalSerializer<String> ups = new UsernamePrincipalSerializer(); ups.initialize(); principalSerializers = Arrays.asList(ups, authnResultPrincipalSerializer); } else { principalSerializers.add(authnResultPrincipalSerializer); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (servicePrincipal == null) { throw new ComponentInitializationException("'servicePrincipal' must be set."); } if (keytab == null && password == null) { throw new ComponentInitializationException("One of 'keytab' or 'password' must be set."); } if (keytab != null && password != null) { throw new ComponentInitializationException("'keytab' and 'password' are mutually exclusive."); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == getSalt()) { throw new ComponentInitializationException("Salt cannot be null"); } if (getSalt().length < 16) { throw new ComponentInitializationException("Salt must be at least 16 bytes in size"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (artifactStore == null) { throw new ComponentInitializationException("StorageService cannot be null"); } // We can't shorten the artifacts as lookup keys at the moment because // the key is used to recreate the original artifact value. artifactStoreKeySize = getStorageService().getCapabilities().getKeySize(); }