/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); // rebuild the hash set - we may have modified the dependencies in the // child class initialization. final HashSet<ResolverPluginDependency> checkedDeps = new HashSet<>(dependencies); dependencies = ImmutableSet.copyOf(checkedDeps); }
/** {@inheritDoc} */ @Override protected void doDestroy() { pipelineStages = null; super.doDestroy(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (resolvers == null) { log.warn("ChainingMetadataResolver was not configured with any member MetadataResolvers"); resolvers = Collections.emptyList(); } }
/** {@inheritDoc} */ @Override protected void doDestroy() { unmarshallerFactory = null; mdFilter = null; entityBackingStore = null; parser = null; criterionPredicateRegistry = null; super.doDestroy(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == dataSealer) { throw new ComponentInitializationException("DataSealer cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doDestroy() { super.doDestroy(); resolvers = Collections.emptyList(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (responderId == null && responderIdLookupStrategy == null) { throw new ComponentInitializationException("Responder ID and lookup strategy cannot both be null"); } }
/** {@inheritDoc} */ @Override protected void doDestroy() { if (cleanupTask != null) { cleanupTask.cancel(); cleanupTask = null; if (cleanupTaskTimer == null) { internalTaskTimer.cancel(); } internalTaskTimer = null; } super.doDestroy(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (format == null) { throw new ComponentInitializationException("Format value cannot be null or empty"); } }
/** {@inheritDoc} */ @Override protected void doDestroy() { activationCondition = Predicates.alwaysFalse(); dependencies = Collections.emptySet(); super.doDestroy(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null, null); }
/** {@inheritDoc} */ @Override protected void doDestroy() { ComponentSupport.destroy(bridgedObject); super.doDestroy(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { ComponentSupport.initialize(bridgedObject); super.doInitialize(); logPrefix = null; }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (resultSerializer == null) { throw new ComponentInitializationException("AuthenticationResult serializer cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (cleanupInterval > 0) { cleanupTask = getCleanupTask(); if (cleanupTask == null) { throw new ComponentInitializationException("Cleanup task cannot be null if cleanupInterval is set."); } else if (cleanupTaskTimer == null) { internalTaskTimer = new Timer(true); } else { internalTaskTimer = cleanupTaskTimer; } internalTaskTimer.schedule(cleanupTask, cleanupInterval, cleanupInterval); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == dataSealer) { throw new ComponentInitializationException(getLogPrefix() + " no data sealer set"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { Constraint.isNotNull(scLookupStrategy, "SubjectContext lookup strategy cannot be null"); Constraint.isNotNull(attributesValueFunction, "Attribute Engine cannot be null"); super.doInitialize(); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (null == idStore) { throw new ComponentInitializationException("StorageService cannot be null"); } if (idGenerator == null) { idGenerator = new RandomIdentifierGenerationStrategy(idSize); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (storageService == null) { throw new ComponentInitializationException("StorageService cannot be null"); } else if (lockoutKeyStrategy == null) { throw new ComponentInitializationException("Lockout key strategy cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); for (Stage<T> stage : pipelineStages) { if (!stage.isInitialized()) { stage.initialize(); } } } }