All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infomaximum.platform.sdk.remote.packer.RemotePackerContext Maven / Gradle / Ivy

There is a newer version: 0.1.15p24
Show newest version
package com.infomaximum.platform.sdk.remote.packer;

import com.infomaximum.cluster.core.remote.packer.RemotePacker;
import com.infomaximum.cluster.struct.Component;
import com.infomaximum.platform.sdk.context.Context;

import java.lang.reflect.Type;

/**
 * Created by user on 06.09.2017.
 * TODO Ulitin V. Когда будем разъезжаться по серверам реализовать
 */
public class RemotePackerContext implements RemotePacker {

    @Override
    public boolean isSupport(Class classType) {
        return Context.class.isAssignableFrom(classType) && classType.isInterface();
    }

    @Override
    public String getClassName(Class classType) {
        return Context.class.getName();
    }

    @Override
    public void validation(Type classType) {
    }

    @Override
    public byte[] serialize(Component component, Context value) {
        throw new RuntimeException("Not implemented");
    }

    @Override
    public Context deserialize(Component component, Class classType, byte[] value) {
        throw new RuntimeException("Not implemented");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy