public class ProtobufSchema extends Object implements InfinispanSchemaDefinition
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.infinispan.protostream.BaseMarshaller> |
messageMarshallerMap |
static org.teiid.core.BundleUtil |
UTIL |
Constructor and Description |
---|
ProtobufSchema() |
Modifier and Type | Method and Description |
---|---|
org.infinispan.protostream.descriptors.Descriptor |
getDecriptor(InfinispanManagedConnectionFactory config,
Class<?> clz)
Called to obtain a
Descriptor for the specified class. |
void |
initialize(InfinispanManagedConnectionFactory config,
ClassRegistry methodUtil)
Called to perform any initialization required by registering the classes.
|
void |
registerSchema(InfinispanManagedConnectionFactory config)
Called to perform the JDG schema configuration by registering with the remote JDG cache.
|
public void initialize(InfinispanManagedConnectionFactory config, ClassRegistry methodUtil) throws javax.resource.ResourceException
InfinispanSchemaDefinition
initialize
in interface InfinispanSchemaDefinition
javax.resource.ResourceException
public void registerSchema(InfinispanManagedConnectionFactory config) throws javax.resource.ResourceException
InfinispanSchemaDefinition
registerSchema
in interface InfinispanSchemaDefinition
javax.resource.ResourceException
public org.infinispan.protostream.descriptors.Descriptor getDecriptor(InfinispanManagedConnectionFactory config, Class<?> clz) throws TranslatorException
InfinispanSchemaDefinition
Descriptor
for the specified class.getDecriptor
in interface InfinispanSchemaDefinition
TranslatorException
- if no descriptor is found.Copyright © 2017 JBoss by Red Hat. All rights reserved.