Class SerializerConfig


  • @Configuration
    public class SerializerConfig
    extends Object
    Initialize serializer beans
    Author:
    pgarcia
    • Constructor Detail

      • SerializerConfig

        public SerializerConfig​(SecurityConfigProperties securityConfigProperties)
        SerializeConfig constructor
        Parameters:
        securityConfigProperties - Security configuration properties
    • Method Detail

      • onConstruct

        @PostConstruct
        public void onConstruct()
        On construct initialize thread local
      • onDestroy

        @PreDestroy
        public void onDestroy()
        On destroy remove thread local
      • xStreamSerializer

        @Bean
        @ConditionalOnMissingBean
        public XStreamSerializer xStreamSerializer​(org.springframework.oxm.xstream.XStreamMarshaller xStreamMarshaller)
        XStream serializer
        Returns:
        Serializer
      • xStreamMarshaller

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.oxm.xstream.XStreamMarshaller xStreamMarshaller()
        Get XML management Engine
        Returns:
        XStream Marshaller
      • javascriptEngine

        @Bean
        @Scope("prototype")
        public org.graalvm.polyglot.Context javascriptEngine()
        Get Javascript management Engine
        Returns:
        Javascript engine