package Ġcom . netflix . spin n aker . config Ċ Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . fasterxml . jackson . data format . yaml . YAML Mapper Ċ import Ġcom . netflix . spin n aker . fi at . shared . Enable Fi at Auto Config Ċ import Ġcom . netflix . spin n aker . filters . Authenticated Request Filter Ċ import Ġcom . netflix . spin n aker . ke el . api . ApiVersion Ċ import Ġcom . netflix . spin n aker . ke el . api . Resource Spec Ċ import Ġcom . netflix . spin n aker . ke el . persistence . Application Veto Repository Ċ import Ġcom . netflix . spin n aker . ke el . persistence . Artifact Repository Ċ import Ġcom . netflix . spin n aker . ke el . persistence . Delivery Config Repository Ċ import Ġcom . netflix . spin n aker . ke el . persistence . Resource Repository Ċ import Ġcom . netflix . spin n aker . ke el . persistence . memory . InMemory Application Veto Repository Ċ import Ġcom . netflix . spin n aker . ke el . persistence . memory . InMemory Artifact Repository Ċ import Ġcom . netflix . spin n aker . ke el . persistence . memory . InMemory Delivery Config Repository Ċ import Ġcom . netflix . spin n aker . ke el . persistence . memory . InMemory Resource Repository Ċ import Ġcom . netflix . spin n aker . ke el . plugin . Resource Handler Ċ import Ġcom . netflix . spin n aker . ke el . plugin . support ing Ċ import Ġcom . netflix . spin n aker . ke el . resources . ResourceType Identifier Ċ import Ġcom . netflix . spin n aker . ke el . serialization . configured ObjectMapper Ċ import Ġcom . netflix . spin n aker . ke el . serialization . configured Yaml Mapper Ċ import Ġde . h ux h orn . s ulk y . ul id . UL ID Ċ import Ġorg . springframework . beans . factory . get Beans OfType Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Missing Bean Ċ import Ġorg . springframework . boot . web . servlet . Filter Registration Bean Ċ import Ġorg . springframework . context . ApplicationContext Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . core . Ordered . HIG HE ST _ PREC ED ENCE Ċ import Ġjava . time . Clock Ċ Ċ @ Enable Fi at Auto Config Ċ @ Configuration Ċ class ĠDefault Configuration Ġ{ ĊĠ Ġ@ Bean ĊĠ Ġ@ Conditional On Missing Bean ĊĠ Ġfun Ġclock (): ĠClock Ġ= ĠClock . system Default Zone () ĊĊĠ Ġ@ Bean ĊĠ Ġfun Ġid Generator (): ĠU L ID Ġ= ĠU L ID () ĊĊĠ Ġ@ Bean ĊĠ Ġfun ĠobjectMapper (): ĠObjectMapper Ġ= Ġconfigured ObjectMapper () ĊĊĠ Ġ@ Bean ĊĠ Ġfun Ġyaml Mapper (): ĠYAML Mapper Ġ= Ġconfigured Yaml Mapper () ĊĊĠ Ġ@ Bean ĊĠ Ġ@ Conditional On Missing Bean ĊĠ Ġfun Ġresource Repository ( clock : ĠClock ): ĠResource Repository Ġ= ĠIn Memory Resource Repository ( clock ) ĊĊĠ Ġ@ Bean ĊĠ Ġ@ Conditional On Missing Bean ĊĠ Ġfun Ġartifact Repository (): ĠArtifact Repository Ġ= ĠIn Memory Artifact Repository () ĊĊĠ Ġ@ Bean ĊĠ Ġ@ Conditional On Missing Bean ĊĠ Ġfun Ġdelivery Config Repository ( ĊĠĠĠ Ġartifact Repository : ĠArtifact Repository ĊĠ Ġ): ĠDelivery Config Repository Ġ= ĊĠĠĠ ĠIn Memory Delivery Config Repository () ĊĊĠ Ġ@ Bean ĊĠ Ġ@ Conditional On Missing Bean ĊĠ Ġfun Ġapplication Veto Repository (): ĠApplication Veto Repository Ġ= ĠIn Memory Application Veto Repository () ĊĊĠ Ġ@ Bean ĊĠ Ġ@ Conditional On Missing Bean ( Resource Handler :: class ) ĊĠ Ġfun Ġno Resource Plugins (): ĠList < Resource Handler < *, Ġ* >> Ġ= Ġempty List () ĊĊĠ Ġ@ Bean ĊĠ Ġfun Ġresource Type Identifier ( ĊĠĠĠ Ġapplication Context : ĠApplication Context ĊĠ Ġ): ĠResource Type Identifier Ġ= ĊĠĠĠ Ġobject Ġ: ĠResource Type Identifier Ġ{ ĊĠĠĠĠĠ Ġ// Ġbecause Ġotherwise Ġwe Ġget Ġa Ġcircular Ġdependency ĊĠĠĠĠĠ Ġprivate Ġval Ġhandlers Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ Ġapplication Context . get Beans OfType < Resource Handler < *, Ġ* >> (). values ĊĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠ Ġoverride Ġfun Ġidentify ( apiVersion : ĠApi Version , Ġkind : ĠString ): ĠClass < out ĠResource Spec > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġhandlers . support ing ( apiVersion , Ġkind ). supported Kind . spec Class ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠ Ġ@ Bean ĊĠ Ġfun Ġauthenticated Request Filter (): ĠFilter Registration Bean < Authenticated Request Filter > Ġ= ĊĠĠĠ ĠFilter Registration Bean ( Authenticated Request Filter ( true )) ĊĠĠĠĠĠ Ġ. apply Ġ{ Ġorder Ġ= ĠH IG HE ST _ PREC ED ENCE Ġ} Ċ } Ċ