Annotation Interface Serialized


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Serialized
Indicates that a remote method should use Java object serialization for the parameters and return value. Object serialization isn't very efficient, and so built-in and custom serialization is generally preferred.

This feature isn't supported for piped methods, and instead Java object serialization must be applied manually. Care must be taken when recycling the pipe to ensure that the object input stream doesn't read too far ahead.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specify which classes should be rejected or allowed by serialization.
  • Element Details

    • filter

      String filter
      Specify which classes should be rejected or allowed by serialization. Undecided classes are rejected.
      See Also: