Module jdk.dynalink

Class CompositeTypeBasedGuardingDynamicLinker

All Implemented Interfaces:
GuardingDynamicLinker, TypeBasedGuardingDynamicLinker

public class CompositeTypeBasedGuardingDynamicLinker
extends Object
implements TypeBasedGuardingDynamicLinker
A composite type-based guarding dynamic linker. When a receiver of a not yet seen class is encountered, all linkers are queried sequentially on their TypeBasedGuardingDynamicLinker.canLinkType(Class) method. The linkers returning true are then bound to the class, and next time a receiver of same type is encountered, the linking is delegated to those linkers only, speeding up dispatch.