public class SimpleMarshallingConfigurationRepository extends Object implements MarshallingConfigurationRepository
MarshallingConfigurationRepository
implementation based on an array of MarshallingConfiguration
s.
Marshalling versions, while arbitrary, are sequential by convention; and start at 1, not 0, for purely historical reasons.Constructor and Description |
---|
SimpleMarshallingConfigurationRepository(Class<E> enumClass,
E current,
C context)
Create a marshalling configuration repository using the specified enumeration of marshalling configuration suppliers.
|
SimpleMarshallingConfigurationRepository(org.jboss.marshalling.MarshallingConfiguration... configurations)
Create a marshalling configuration repository using the specified marshalling configurations.
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrentMarshallingVersion() |
org.jboss.marshalling.MarshallingConfiguration |
getMarshallingConfiguration(int version) |
public SimpleMarshallingConfigurationRepository(Class<E> enumClass, E current, C context)
enumClass
- an enum classcurrentConfiguration
- the supplier of the current marshalling configurationcontext
- the context with which to obtain the marshalling configurationpublic SimpleMarshallingConfigurationRepository(org.jboss.marshalling.MarshallingConfiguration... configurations)
configurations
- public int getCurrentMarshallingVersion()
getCurrentMarshallingVersion
in interface MarshallingConfigurationRepository
public org.jboss.marshalling.MarshallingConfiguration getMarshallingConfiguration(int version)
getMarshallingConfiguration
in interface MarshallingConfigurationRepository
Copyright © 2018 JBoss by Red Hat. All rights reserved.