JBoss Marshalling 1.2.1.GA

org.jboss.marshalling
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 Summary
 MarshallerFactory getMarshallerFactory()
          Get the marshaller factory instance for this provider.
 String getName()
          Get the name of this provider.
 int[] getSupportedVersions()
          Get the supported wire protocol versions for this provider, in descending order.
 

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

JBoss Marshalling 1.2.1.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.