001/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
002 *
003 * Copyright © 2023–2024 microBean™.
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
006 * the License. You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
011 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
012 * specific language governing permissions and limitations under the License.
013 */
014package org.microbean.bean;
015
016import java.util.function.BiFunction;
017
018// Subordinate to Factory<I>. Normally applied to PostInitializer<I> output.
019// An applicator of business method interceptions. This is used during assembly of a Factory implementation and should
020// be used probably only when "around-invoke" interceptions are in effect.
021@FunctionalInterface
022public interface InterceptionsApplicator<I> extends BiFunction<I, Request<I>, I> {
023
024  @Override // BiFunction<I, Request<I>, I>
025  public I apply(final I uninterceptedInstance, final Request<I> r);
026
027}