/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* Licensed Materials - Property of IBM
* RMI-IIOP v1.0
* Copyright IBM Corp. 1998 1999 All Rights Reserved
*
*/
/**
* Server implementation objects may either inherit from
* javax.rmi.PortableRemoteObject or they may implement a remote interface
* and then use the exportObject method to register themselves as a server object.
* The toStub method takes a server implementation and returns a stub that
* can be used to access that server object.
* The connect method makes a Remote object ready for remote communication.
* The unexportObject method is used to deregister a server object, allowing it to become
* available for garbage collection.
* The narrow method takes an object reference or abstract interface type and
* attempts to narrow it to conform to
* the given interface. If the operation is successful the result will be an
* object of the specified type, otherwise an exception will be thrown.
*/
public class PortableRemoteObject {
"javax.rmi.CORBA.PortableRemoteObjectClass";
"com.sun.corba.se.impl.javax.rmi.PortableRemoteObject";
static {
}
/**
* Initializes the object by calling <code>exportObject(this)</code>.
* @exception RemoteException if export fails.
*/
if (proDelegate != null) {
}
}
/**
* Makes a server object ready to receive remote calls. Note
* that subclasses of PortableRemoteObject do not need to call this
* method, as it is called by the constructor.
* @param obj the server object to export.
* @exception RemoteException if export fails.
*/
throws RemoteException {
// Let the delegate do everything, including error handling.
if (proDelegate != null) {
}
}
/**
* Returns a stub for the given server object.
* @param obj the server object for which a stub is required. Must either be a subclass
* of PortableRemoteObject or have been previously the target of a call to
* {@link #exportObject}.
* @return the most derived stub for the object.
* @exception NoSuchObjectException if a stub cannot be located for the given server object.
*/
throws NoSuchObjectException {
if (proDelegate != null) {
}
return null;
}
/**
* Deregisters a server object from the runtime, allowing the object to become
* available for garbage collection.
* @param obj the object to unexport.
* @exception NoSuchObjectException if the remote object is not
* currently exported.
*/
throws NoSuchObjectException {
if (proDelegate != null) {
}
}
/**
* Checks to ensure that an object of a remote or abstract interface type
* can be cast to a desired type.
* @param narrowFrom the object to check.
* @param narrowTo the desired type.
* @return an object which can be cast to the desired type.
* @throws ClassCastException if narrowFrom cannot be cast to narrowTo.
*/
throws ClassCastException {
if (proDelegate != null) {
}
return null;
}
/**
* Makes a Remote object ready for remote communication. This normally
* happens implicitly when the object is sent or received as an argument
* on a remote method call, but in some circumstances it is useful to
* perform this action by making an explicit call. See the
* {@link javax.rmi.CORBA.Stub#connect} method for more information.
* @param target the object to connect.
* @param source a previously connected object.
* @throws RemoteException if <code>source</code> is not connected
* or if <code>target</code> is already connected to a different ORB than
* <code>source</code>.
*/
throws RemoteException {
if (proDelegate != null) {
}
}
// Same code as in javax.rmi.CORBA.Util. Can not be shared because they
// are in different packages and the visibility needs to be package for
// security reasons. If you know a better solution how to share this code
// then remove it from here.
}
}
}
try {
} catch (ClassNotFoundException ex) {
throw exc ;
throw exc ;
}
}
{
try {
} catch (ClassNotFoundException e) {
// ignore, then try RMIClassLoader
}
try {
} catch (MalformedURLException e) {
throw exc ;
}
}
/**
* Load the orb.properties file.
*/
}
}
private boolean debug = false ;
public GetORBPropertiesFileAction () {
}
// This will not throw a SecurityException because this
// class was loaded from rt.jar using the bootstrap classloader.
new PrivilegedAction() {
}
}
);
return propValue;
}
{
try {
return ;
try {
} finally {
}
if (debug)
" not found: " + exc) ;
}
}
{
"orb.properties" ;
return results ;
}
}