org.apache.cayenne.remote.hessian

## Class HessianConfig

- java.lang.Object
- - org.apache.cayenne.remote.hessian.HessianConfig

-     public class HessianConfig
      extends Object

  A utility class that configures Hessian serialization properties using reflection.
  Since:
    1.2

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HessianConfig()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static com.caucho.hessian.io.SerializerFactory` | `createFactory(String[] factoryNames, EntityResolver resolver)` Creates a Hessian SerializerFactory configured with zero or more AbstractSerializerFactory extensions.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HessianConfig

          public HessianConfig()

  - ### Method Detail

    - #### createFactory

          public static com.caucho.hessian.io.SerializerFactory createFactory(String[] factoryNames,
                                                                              EntityResolver resolver)

      Creates a Hessian SerializerFactory configured with zero or more AbstractSerializerFactory extensions. Extensions are specified as class names. This method can inject EntityResolver if an extension factory class defines setEntityResolver(EntityResolver) method.
      Parameters:
        `factoryNames` - an array of factory class names. Each class must be a concrete subclass of com.caucho.hessian.io.AbstractSerializerFactory and have a default constructor.
        `resolver` - if not null, EntityResolver will be injected into all factories that implement setEntityResolver(EntityResolver) method.

Copyright © 2001–2023 Apache Cayenne. All rights reserved.