Interface MarshallingConfigurationRepository
public interface MarshallingConfigurationRepository
Repository of versioned
MarshallingConfigurations.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionfrom(int currentVersion, org.jboss.marshalling.MarshallingConfiguration... configurations) static <C,E extends Enum<E> & Function<C, org.jboss.marshalling.MarshallingConfiguration>>
MarshallingConfigurationRepositoryfrom(E current, C context) from(org.jboss.marshalling.MarshallingConfiguration... configurations) org.jboss.marshalling.MarshallingConfigurationReturns the marshalling configuration for the current version.intReturns the current marshalling configuration version.org.jboss.marshalling.MarshallingConfigurationgetMarshallingConfiguration(int version) Returns the marshalling configuration for the specified version.
-
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.- 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, MarshallingConfigurationRepository fromorg.jboss.marshalling.MarshallingConfiguration>> (E current, C context) -
from
static MarshallingConfigurationRepository from(org.jboss.marshalling.MarshallingConfiguration... configurations) -
from
static MarshallingConfigurationRepository from(int currentVersion, org.jboss.marshalling.MarshallingConfiguration... configurations)
-