com.infomaximum.platform.sdk.remote.packer.RemotePackerContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform Show documentation
Show all versions of platform Show documentation
Library for creating a light platform
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");
}
}