Interface ProviderDescriptor


  • public interface ProviderDescriptor
    A provider descriptor for automatically-discovered marshalling factory types. Since instances of this interface are constructed automatically, implementing classes should have a no-arg constructor.

    To add an automatically-discovered marshaller, create a file called "META-INF/services/org.jboss.marshalling.ProviderDescriptor" and populate it with the names of classes that implement this interface.

    See Also:
    ServiceLoader
    • Method Detail

      • getName

        String getName()
        Get the name of this provider.
        Returns:
        the provider name
      • getSupportedVersions

        int[] getSupportedVersions()
        Get the supported wire protocol versions for this provider, in descending order.
        Returns:
        the supported versions in descending order
      • getMarshallerFactory

        MarshallerFactory getMarshallerFactory()
        Get the marshaller factory instance for this provider.
        Returns:
        the marshaller factory