Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 * JBoss, Home of Professional Open Source
 * Copyright 2005, JBoss Inc., and individual contributors as indicated
 * by the @authors tag. See the copyright.txt 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
* 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:
package org.jboss.remoting.serialization;
Controls the creation of ObjectInputStream, ObjectOutputStream.

It is important that implementation of this class needs to be stateless. $Id: 3843 2008-04-02 04:10:43Z $

Clebert Suconic
public abstract class SerializationManager
      ClassLoader tcl = (ClassLoader) AccessController.doPrivilegednew PrivilegedAction()
         public Object run()
            return Thread.currentThread().getContextClassLoader();
      return createInput(inputtcl);
   public abstract ObjectInputStream createInput(InputStream inputClassLoader loaderthrows IOException;
   public abstract ObjectOutputStream createOutput(OutputStream outputthrows IOException;

Creates a MarshalledValue that does lazy serialization.
   public abstract IMarshalledValue createdMarshalledValue(Object sourcethrows IOException;
   public void sendObject(ObjectOutputStream outputObject dataObjectthrows IOException
      int version = Version.getDefaultVersion();
   public abstract void sendObject(ObjectOutputStream outputObject dataObjectint versionthrows IOException;

Used in call by value operations. This will use the most effective way
	public abstract IMarshalledValue createMarshalledValueForClone(Object originalthrows IOException;

This was a refactory of a method usually existent on org.jboss.remoting.marshal.serializable.SerializableUnMarshaller. That's why we are using InputStream instead of ObjectInputStream as a parameter here.
   public Object receiveObject(InputStream inputClassLoader customClassLoaderthrows IOExceptionClassNotFoundException
      int version = Version.getDefaultVersion();
      return receiveObject(inputcustomClassLoaderversion);
   public abstract Object receiveObject(InputStream inputClassLoader customClassLoaderint versionthrows IOExceptionClassNotFoundException;
New to GrepCode? Check out our FAQ X