Package org.jboss.marshalling
Interface ProviderDescriptor
- All Known Implementing Classes:
RiverProviderDescriptor
,SerialProviderDescriptor
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:
-
Method Summary
Modifier and TypeMethodDescriptionGet the marshaller factory instance for this provider.getName()
Get the name of this provider.int[]
Get the supported wire protocol versions for this provider, in descending order.
-
Method Details
-
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
-