org.infinispan.config
Class ExternalizerConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
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
externalizerClass
protected String externalizerClass
id
protected Integer id
ExternalizerConfig
public ExternalizerConfig()
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.