@HashCodeAndEqualsPlugin.Enhance public static class Implementation.Compound.Composable extends Object implements Implementation.Composable
Implementation.Composable.
Note that the combination of two implementation might break the contract for implementing
Object.equals(Object) and Object.hashCode() as described for
Implementation.ImplementationImplementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.TargetInstrumentedType.Prepareable.NoOp| Constructor and Description |
|---|
Composable(Implementation implementation,
Implementation.Composable composable)
Creates a new compound composable.
|
Composable(List<? extends Implementation> implementations,
Implementation.Composable composable)
Creates a new compound composable.
|
| Modifier and Type | Method and Description |
|---|---|
Implementation.Composable |
andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation |
andThen(Implementation implementation)
Appends the supplied implementation to this implementation.
|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
public Composable(Implementation implementation, Implementation.Composable composable)
implementation - An implementation that is represented by this compound implementation prior to the composable.composable - The composable implementation that is applied last.public Composable(List<? extends Implementation> implementations, Implementation.Composable composable)
implementations - All implementation that are represented by this compound implementation excluding the composable.composable - The composable implementation that is applied last.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.public ByteCodeAppender appender(Implementation.Target implementationTarget)
appender in interface ImplementationimplementationTarget - The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType).public Implementation andThen(Implementation implementation)
andThen in interface Implementation.Composableimplementation - The subsequent implementation.public Implementation.Composable andThen(Implementation.Composable implementation)
andThen in interface Implementation.Composableimplementation - The subsequent composable implementation.Copyright © 2014–2023. All rights reserved.