[jboss-cvs] JBossAS SVN: r72877 - projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 29 18:26:49 EDT 2008
Author: bstansberry at jboss.com
Date: 2008-04-29 18:26:48 -0400 (Tue, 29 Apr 2008)
New Revision: 72877
Added:
projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/ObjectStreamSource.java
Log:
[JBCLUSTER-198] JBoss Serialization support for SimpleCachableMarshalledValue
Added: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/ObjectStreamSource.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/ObjectStreamSource.java (rev 0)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/ObjectStreamSource.java 2008-04-29 22:26:48 UTC (rev 72877)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ha.framework.interfaces;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+import java.io.OutputStream;
+
+/**
+ * Object that provides implementations of {@link ObjectInput} and
+ * {@link ObjectOutput}.
+ *
+ * @author Brian Stansberry
+ */
+public interface ObjectStreamSource
+{
+ ObjectOutput getObjectOutput(OutputStream target) throws IOException;
+
+ ObjectInput getObjectInput(InputStream source) throws IOException;
+
+}
More information about the jboss-cvs-commits
mailing list