package Ġau . com . di us . p act . provider . spring . target Ċ Ċ import Ġau . com . di us . p act . core . model . Interaction Ċ import Ġau . com . di us . p act . core . model . P act Source Ċ import Ġau . com . di us . p act . provider . I Consumer Info Ċ import Ġau . com . di us . p act . provider . I Provider Info Ċ import Ġau . com . di us . p act . provider . I Provider Verifier Ċ import Ġau . com . di us . p act . provider . junit . target . Message Target Ċ import Ġorg . springframework . beans . factory . BeanFactory Ċ import Ġorg . springframework . beans . factory . BeanFactory Aware Ċ import Ġjava . util . function . Function Ċ Ċ /** Ċ Ġ* ĠTarget Ġfor Ġmessage Ġverification Ġthat Ġsupports Ġa Ġspring Ġapplication Ġcontext . ĠFor Ġeach Ġannotated Ġmethod , Ġthe Ġow ning Ċ Ġ* Ġbean Ġwill Ġbe Ġlooked Ġup Ġfrom Ġthe Ġapplication Ġcontext Ċ Ġ*/ Ċ open Ġclass ĠSpring Aware Message Target Ġ: ĠMessage Target (), ĠBean Factory Aware Ġ{ ĊĠ Ġprivate Ġlateinit Ġvar Ġbean Factory : ĠBean Factory ĊĊĠ Ġoverride Ġfun Ġset BeanFactory ( bean Factory : ĠBean Factory ) Ġ{ ĊĠĠĠ Ġthis . bean Factory Ġ= Ġbean Factory ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġsetup Verifier ( ĊĠĠĠ Ġinteraction : ĠInteraction , ĊĠĠĠ Ġprovider : ĠI Provider Info , ĊĠĠĠ Ġconsumer : ĠI Consumer Info , ĊĠĠĠ Ġp act Source : ĠP act Source ? ĊĠ Ġ): ĠI Provider Verifier Ġ{ ĊĠĠĠ Ġval Ġverifier Ġ= Ġsuper . setup Verifier ( interaction , Ġprovider , Ġconsumer , Ġp act Source ) ĊĠĠĠ Ġverifier . provider Method Instance Ġ= ĠFunction Ġ{ Ġm Ġ-> Ġbean Factory . getBean ( m . decl aring Class ) Ġ} ĊĠĠĠ Ġreturn Ġverifier ĊĠ Ġ} Ċ } Ċ