Interface MarshallingConfigurationRepository


public interface MarshallingConfigurationRepository
Repository of versioned MarshallingConfigurations.
Author:
Paul Ferraro
  • Method Details

    • getCurrentVersion

      int getCurrentVersion()
      Returns the current marshalling configuration version.
      Returns:
      a version
    • getCurrentMarshallingConfiguration

      org.jboss.marshalling.MarshallingConfiguration getCurrentMarshallingConfiguration()
      Returns the marshalling configuration for the current version.
      Parameters:
      version - a version
      Returns:
      a marshalling configuration
    • getMarshallingConfiguration

      org.jboss.marshalling.MarshallingConfiguration getMarshallingConfiguration(int version) throws IOException
      Returns the marshalling configuration for the specified version.
      Parameters:
      version - a version
      Returns:
      a marshalling configuration
      Throws:
      IOException - if the specified version is unknown
    • from

      static <C, E extends Enum<E> & Function<C, org.jboss.marshalling.MarshallingConfiguration>> MarshallingConfigurationRepository from(E current, C context)
    • from

      static MarshallingConfigurationRepository from(org.jboss.marshalling.MarshallingConfiguration... configurations)
    • from

      static MarshallingConfigurationRepository from(int currentVersion, org.jboss.marshalling.MarshallingConfiguration... configurations)