Class CxfFixedConfig.NativeClientFixedConfig

  • Enclosing class:
    CxfFixedConfig

    public static class CxfFixedConfig.NativeClientFixedConfig
    extends Object
    • Field Detail

      • runtimeInitialized

        @ConfigItem(defaultValue="false")
        public boolean runtimeInitialized
        If true, the client dynamic proxy class generated by native compiler will be initialized at runtime; otherwise the proxy class will be initialized at build time.

        Setting this to true makes sense if your service endpoint interface references some class initialized at runtime in its method signatures. E.g. Say, your service interface has method int add(Operands o) and the Operands class was requested to be initialized at runtime. Then, without setting this configuration parameter to true, the native compiler will throw an exception saying something like Classes that should be initialized at run time got initialized during image building: org.acme.Operands ... jdk.proxy<some-number>.$Proxy<some-number> caused initialization of this class. jdk.proxy<some-number>.$Proxy<some-number> is the proxy class generated by the native compiler.

        While quarkus-cxf can auto-detect the proper setting in some cases, the auto-detection is not perfect. This is because runtime initialization of classes can be requested in many ways out of which only the ones done via Quarkus RuntimeInitializedClassBuildItem and RuntimeInitializedPackageBuildItem can safely be observed by quarkus-cxf. In other cases, you'll have to set this manually.

    • Constructor Detail

      • NativeClientFixedConfig

        public NativeClientFixedConfig()