create

open override fun <P : PrepareKey<*>> create(metadata: PrepareKeyMetadata<P>): P

Creates a proxy instance of the PrepareKey interface using JDK dynamic proxy. The proxy delegates all method calls to the underlying PrepareKey instance created by the prepareKeyFactory, with special handling for default methods.

Return

a proxy instance implementing the PrepareKey interface

Parameters

P

the PrepareKey interface type

metadata

the metadata containing proxy configuration