org.infinispan.config
Class GlobalConfiguration.SerializationType

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.GlobalConfiguration.SerializationType
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, GlobalConfiguration.SerializationConfig, JAXBUnmarshallable
Enclosing class:
GlobalConfiguration

public static class GlobalConfiguration.SerializationType
extends AbstractConfigurationBean
implements GlobalConfiguration.SerializationConfig

Serialization and marshalling settings.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  GlobalConfiguration.ExternalizersType externalizerTypes
           
protected  String marshallerClass
           
protected  String version
           
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
GlobalConfiguration.SerializationType()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 CloneableConfigurationComponent clone()
           
 GlobalConfiguration.ExternalizersConfig configureExternalizers()
          Returns externalizers sub element
protected  boolean hasComponentStarted()
          Tests whether the component this configuration bean intents to configure has already started.
 void inject(GlobalComponentRegistry gcr)
           
 GlobalConfiguration.SerializationConfig marshallerClass(Class<? extends Marshaller> marshallerClass)
          Fully qualified name of the marshaller to use.
 void setExternalizerTypes(GlobalConfiguration.ExternalizersType externalizerTypes)
           
 void setMarshallerClass(String marshallerClass)
           
 void setVersion(String version)
           
 GlobalConfiguration.SerializationConfig version(String version)
          Largest allowable version to use when marshalling internal state.
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

marshallerClass

protected String marshallerClass

version

protected String version

externalizerTypes

protected GlobalConfiguration.ExternalizersType externalizerTypes
Constructor Detail

GlobalConfiguration.SerializationType

public GlobalConfiguration.SerializationType()
Method Detail

accept

public void accept(ConfigurationBeanVisitor v)

setExternalizerTypes

public void setExternalizerTypes(GlobalConfiguration.ExternalizersType externalizerTypes)

marshallerClass

public GlobalConfiguration.SerializationConfig marshallerClass(Class<? extends Marshaller> marshallerClass)
Description copied from interface: GlobalConfiguration.SerializationConfig
Fully qualified name of the marshaller to use. It must implement org.infinispan.marshall.StreamingMarshaller

Specified by:
marshallerClass in interface GlobalConfiguration.SerializationConfig

version

public GlobalConfiguration.SerializationConfig version(String version)
Description copied from interface: GlobalConfiguration.SerializationConfig
Largest allowable version to use when marshalling internal state. Set this to the lowest version cache instance in your cluster to ensure compatibility of communications. However, setting this too low will mean you lose out on the benefit of improvements in newer versions of the marshaller.

Specified by:
version in interface GlobalConfiguration.SerializationConfig

setMarshallerClass

public void setMarshallerClass(String marshallerClass)

setVersion

public void setVersion(String version)

configureExternalizers

public GlobalConfiguration.ExternalizersConfig configureExternalizers()
Description copied from interface: GlobalConfiguration.SerializationConfig
Returns externalizers sub element

Specified by:
configureExternalizers in interface GlobalConfiguration.SerializationConfig
Returns:
ExternalizersConfig element

inject

public void inject(GlobalComponentRegistry gcr)

hasComponentStarted

protected boolean hasComponentStarted()
Description copied from class: AbstractConfigurationBean
Tests whether the component this configuration bean intents to configure has already started.

Specified by:
hasComponentStarted in class AbstractConfigurationBean
Returns:
true if the component has started; false otherwise.

clone

public CloneableConfigurationComponent clone()
                                      throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractConfigurationBean
Throws:
CloneNotSupportedException


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.