Adds more rules to the context by passing a consumer that will be invoked before creating the
component.

@param consumer the consumer to configure the context
@return a new ComponentFactory
513591
public ComponentFactory<T, E> toConfigure(BiConsumer<Context, Annotation> consumer) {
    return new ComponentFactory<>(this.annotationType, this.classElement, consumer, this.createFunction);
  }
1256117
public static <T> Consumer<T> consumer(CheckedConsumer<T> consumer) {
        return Unchecked.consumer(consumer, Unchecked.RETHROW_ALL);
    }
1201428
@Nonnull
	public static <T> LObjCharConsumerBuilder<T> objCharConsumer(Consumer<LObjCharConsumer<T>> consumer) {
		return new LObjCharConsumerBuilder(consumer);
	}
1221376
@Nonnull
	public static <T> SupplierBuilder<T> supplier(Consumer<Supplier<T>> consumer) {
		return new SupplierBuilder(consumer);
	}
502003
@Nonnull
	public static <T> LObjIntCharPredicateBuilder<T> objIntCharPredicate(Consumer<LObjIntCharPredicate<T>> consumer) {
		return new LObjIntCharPredicateBuilder(consumer);
	}
199227
public void registerConsumer( LocalMessageConsumer consumer )
    {
    	consumersLock.writeLock().lock();
    	try
    	{
    		localConsumers.add(consumer);
    	}
    	finally
    	{
    		consumersLock.writeLock().unlock();
    	}
    }
143130
public FluentMatchingC<T> orElse(Consumer<T> consumer) {
    patterns.add(ConsumablePattern.of(t -> true, consumer::accept));
    return this;
  }
735503
@Nonnull
	public static <R> LongFunctionBuilder<R> longFunction(Consumer<LongFunction<R>> consumer) {
		return new LongFunctionBuilder(consumer);
	}
26117
@Nonnull
	public static <T> LConsumerBuilder<T> consumer(Consumer<LConsumer<T>> consumer) {
		return new LConsumerBuilder(consumer);
	}
1283014
public static <T> Consumer<T> pipeline(Consumer<T> consumer) {
        return new PipelinedConsumer<T>(Iterations.iterable(consumer));
    }
421804
public Optional<T> ifPresent(final Consumer<? super T> consumer) {
        if (isPresent()) {
            consumer.accept(get());
        }

        return this;
    }
382366
@Nonnull
	public static <T> LObjIntDblPredicateBuilder<T> objIntDblPredicate(Consumer<LObjIntDblPredicate<T>> consumer) {
		return new LObjIntDblPredicateBuilder(consumer);
	}
440385
@Nonnull
	public static <T> BinaryOperatorBuilder<T> binaryOperator(Consumer<BinaryOperator<T>> consumer) {
		return new BinaryOperatorBuilder(consumer);
	}
277412
@Nonnull
	public static <T> Consumer<T> consumerFrom(Consumer<ConsumerBuilder<T>> buildingFunction) {
		ConsumerBuilder builder = new ConsumerBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
728023
synchronized void add(ConsumerSessionImpl consumer)
  {
    consumer.setId(_consumerCount);
    
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "add", new Long(consumer.getIdInternal()) );

    _consumers.put(new Long(_consumerCount), consumer);

    _consumerCount++;

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "add");
  }
1350872
@Nonnull
	public static <T> LObjIntSrtPredicateBuilder<T> objIntSrtPredicate(Consumer<LObjIntSrtPredicate<T>> consumer) {
		return new LObjIntSrtPredicateBuilder(consumer);
	}
293552
public ServiceBuilder withCacheFactory(Function<ComponentSetup, CacheFactory> cacheFactoryCreator) {
        Preconditions.checkNotNull(cacheFactoryCreator, "cacheFactoryCreator");
        this.cacheFactoryCreator = cacheFactoryCreator;
        return this;
    }