Class PlatformJavaObjectFactoryProxy
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.PlatformJavaObjectFactoryProxy
-
- All Implemented Interfaces:
Externalizable,Serializable,Binarylizable
public class PlatformJavaObjectFactoryProxy extends Object implements Externalizable, Binarylizable
Wrapper for Java object factory.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intTYP_DEFAULTDefault factory.static intTYP_USERUser-defined type.
-
Constructor Summary
Constructors Constructor Description PlatformJavaObjectFactoryProxy()Default constructor.PlatformJavaObjectFactoryProxy(int factoryTyp, @Nullable String clsName, @Nullable Object payload, @Nullable Map<String,Object> props)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlatformJavaObjectFactoryfactory(GridKernalContext ctx)Get factory instance.voidreadBinary(BinaryReader reader)Reads fields from provided reader.voidreadExternal(ObjectInput in)StringtoString()voidwriteBinary(BinaryWriter writer)Writes fields to provided writer.voidwriteExternal(ObjectOutput out)
-
-
-
Field Detail
-
TYP_USER
public static final int TYP_USER
User-defined type.- See Also:
- Constant Field Values
-
TYP_DEFAULT
public static final int TYP_DEFAULT
Default factory.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlatformJavaObjectFactoryProxy
public PlatformJavaObjectFactoryProxy()
Default constructor.
-
PlatformJavaObjectFactoryProxy
public PlatformJavaObjectFactoryProxy(int factoryTyp, @Nullable @Nullable String clsName, @Nullable @Nullable Object payload, @Nullable @Nullable Map<String,Object> props)Constructor.- Parameters:
factoryTyp- Factory type.clsName- Class name.payload- Payload.props- Properties.
-
-
Method Detail
-
factory
public PlatformJavaObjectFactory factory(GridKernalContext ctx)
Get factory instance.- Parameters:
ctx- Kernal context for injections.- Returns:
- Factory instance.
-
writeBinary
public void writeBinary(BinaryWriter writer) throws BinaryObjectException
Writes fields to provided writer.- Specified by:
writeBinaryin interfaceBinarylizable- Parameters:
writer- Binary object writer.- Throws:
BinaryObjectException- In case of error.
-
readBinary
public void readBinary(BinaryReader reader) throws BinaryObjectException
Reads fields from provided reader.- Specified by:
readBinaryin interfaceBinarylizable- Parameters:
reader- Binary object reader.- Throws:
BinaryObjectException- In case of error.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-