Interface CodecFactory


  • public interface CodecFactory

    This interface provides support for a human-readable export format of profile attributes of a type defined outside the scope of JAIN SLEE. Codec factories produce codecs, which can convert back and forth between an object and a corresponding string form.

    A codec factory can be included in a profile specification component jar if profile specification components included in the jar define profile CMP attributes of a non-standard type. The presence of a codec factory is indicated using the oc-profile-spec-jar.xml deployment descriptor in the jar. Codec factories must be public, must implement this interface, and must have a public no-arg constructor.

    • Method Detail

      • getCodec

        Codec<?> getCodec​(String type)

        Get a codec for the specified type.

        Parameters:
        type - the fully-qualified class name of the type to get a codec for. The type will always be a non-array type such as java.lang.String.
        Returns:
        a codec for the type, or null if no codec is available for the specified type.