2362N/A * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * An <code>ActivationInstantiator</code> is responsible for creating 0N/A * instances of "activatable" objects. A concrete subclass of 0N/A * <code>ActivationGroup</code> implements the <code>newInstance</code> 0N/A * method to handle creating objects within the group. 0N/A * @author Ann Wollrath 0N/A * @see ActivationGroup 0N/A * The activator calls an instantiator's <code>newInstance</code> 0N/A * method in order to recreate in that group an object with the 0N/A * activation identifier, <code>id</code>, and descriptor, 0N/A * <code>desc</code>. The instantiator is responsible for: <ul> 0N/A * <li> determining the class for the object using the descriptor's 0N/A * <code>getClassName</code> method, 0N/A * <li> loading the class from the code location obtained from the 0N/A * descriptor (using the <code>getLocation</code> method), 0N/A * <li> creating an instance of the class by invoking the special 0N/A * "activation" constructor of the object's class that takes two 0N/A * arguments: the object's <code>ActivationID</code>, and the 0N/A * <code>MarshalledObject</code> containing object specific 0N/A * initialization data, and 0N/A * <li> returning a MarshalledObject containing the stub for the 0N/A * remote object it created </ul> 0N/A * @param id the object's activation identifier 0N/A * @param desc the object's descriptor 0N/A * @return a marshalled object containing the serialized 0N/A * representation of remote object's stub 0N/A * @exception ActivationException if object activation fails 0N/A * @exception RemoteException if remote call fails