/** * Copyright (c) 2012 - 2018 Data In Motion and others. * All rights reserved. * * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Data In Motion - initial API and implementation */ package org.gecko.rsa.api; import java.io.OutputStream; import org.osgi.util.promise.Promise; /** * * @author mark * @since 07.07.2018 */ public interface Serializer { public SerializationContext getSerializationContext(); public Promise serialize(T object); public Promise serialize(T object, C context); public Promise serialize(T object, OutputStream output); public Promise serialize(T object, OutputStream output, C context); }