Class ForyCodecAutoConfiguration

java.lang.Object
org.jwcarman.codec.autoconfigure.ForyCodecAutoConfiguration

@AutoConfiguration(before={JacksonCodecAutoConfiguration.class,Jackson2CodecAutoConfiguration.class,GsonCodecAutoConfiguration.class,JsonbCodecAutoConfiguration.class,ProtobufCodecAutoConfiguration.class}) @ConditionalOnClass({org.apache.fory.ThreadSafeFory.class,ForyCodecFactory.class}) @ConditionalOnBean(org.apache.fory.ThreadSafeFory.class) public class ForyCodecAutoConfiguration extends Object
Registers a ForyCodecFactory when the application defines a ThreadSafeFory bean. Unlike the other backends, Fory cannot be configured on the application's behalf — a usable instance needs the application's classes registered — so the bean is the trigger, and its presence is read as intent: this auto-configuration runs before every classpath-detected backend, so an explicit Fory bean wins over a Jackson that merely happens to be present.
  • Constructor Details

    • ForyCodecAutoConfiguration

      public ForyCodecAutoConfiguration()
  • Method Details

    • foryCodecFactory

      @Bean @ConditionalOnMissingBean(CodecFactory.class) public ForyCodecFactory foryCodecFactory(org.apache.fory.ThreadSafeFory fory)