public interface CodecFactory
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.
Codec<?> getCodec(String type)
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
.null
if no codec is available
for the specified type.