org.infinispan.config
Class ExternalizerConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.ExternalizerConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable

public class ExternalizerConfig
extends AbstractConfigurationBean

Defines custom Externalizers to be registered with marshalling framework

Since:
5.0
Author:
Vladimir Blagojevic
See Also:
Serialized Form

Field Summary
protected  String externalizerClass
           
protected  Integer id
           
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
ExternalizerConfig()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 CloneableConfigurationComponent clone()
           
 boolean equals(Object o)
           
 Externalizer getExternalizer()
           
 String getExternalizerClass()
           
 Integer getId()
           
protected  boolean hasComponentStarted()
          Tests whether the component this configuration bean intents to configure has already started.
 int hashCode()
           
 void inject(GlobalComponentRegistry gcr)
           
 ExternalizerConfig setExternalizer(Externalizer externalizer)
           
 ExternalizerConfig setExternalizerClass(String externalizerClass)
          Fully qualified class name of an Externalizer implementation that knows how to marshall or unmarshall instances of one, or several, user-defined, types.
 ExternalizerConfig setId(Integer id)
          This identifier distinguishes between different user-defined Externalizer implementations, providing a more performant way to ship class information around rather than passing class names or class information in general around.
 String toString()
           
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

externalizerClass

protected String externalizerClass

id

protected Integer id
Constructor Detail

ExternalizerConfig

public ExternalizerConfig()
Method Detail

getExternalizerClass

public String getExternalizerClass()

setExternalizerClass

public ExternalizerConfig setExternalizerClass(String externalizerClass)
Fully qualified class name of an Externalizer implementation that knows how to marshall or unmarshall instances of one, or several, user-defined, types.

Parameters:
externalizerClass -

getId

public Integer getId()

setId

public ExternalizerConfig setId(Integer id)
This identifier distinguishes between different user-defined Externalizer implementations, providing a more performant way to ship class information around rather than passing class names or class information in general around. Only positive ids are allowed, and you can use any number as long as it does not clash with an already existing number for a Externalizer implementation. If there're any clashes, Infinispan will abort startup and will provide class information of the ids clashing.

Parameters:
id -

getExternalizer

public Externalizer getExternalizer()

setExternalizer

public ExternalizerConfig setExternalizer(Externalizer externalizer)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

accept

public void accept(ConfigurationBeanVisitor v)

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.