gnu.CORBA
Class SimpleDelegate
- IorProvider
The delegate, implementing the basic functionality only. This delegate
is set in
ORG.connect(org.omg.CORBA.Object)
if ORB
determines that the object is an instance of the
ObjectImpl
and no other delegate is set.
Request | create_request(Object target, Context context, String operation, NVList parameters, NamedValue returns) - Create the request for the local call
|
Request | create_request(Object target, Context context, String operation, NVList parameters, NamedValue returns, ExceptionList exceptions, ContextList ctx_list) - Create the request for the local call.
|
Object | duplicate(Object target) - Not implemented.
|
boolean | equals(Object self, Object other) - Performs direct comparison ('==').
|
IOR | getIor() - Get the IOR of this object.
|
Object | get_interface_def(Object target) - Not implemented.
|
int | hash(Object target, int maximum) - Return the hashcode (0 <= hashcode <32maximum).
|
int | hashCode(Object target) - Delegates functionality to java.lang.Object.hashCode();
|
boolean | is_a(Object target, String repositoryIdentifer) - Check if this object can be referenced by the given repository id.
|
boolean | is_equivalent(Object target, Object other) - Returns true if the objects are the same or have the same delegate set.
|
boolean | is_local(Object self) - Returns true by default.
|
boolean | non_existent(Object target) - Returns true if the target is null.
|
ORB | orb(Object target) - Returns the ORB, passed in constructor,
regardless of the argument.
|
void | release(Object target) - Returns without action.
|
Request | request(Object target, String operation) - This method assumes that the target is local and connected to the ORB.
|
void | setIor(IOR an_ior) - Set the IOR of this object.
|
create_request , create_request , duplicate , equals , get_domain_managers , get_interface_def , get_policy , hash , hashCode , invoke , is_a , is_equivalent , is_local , non_existent , orb , release , releaseReply , request , request , servant_postinvoke , set_policy_override , toString |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
orb
protected final ORB orb
The orb.
hash
public int hash(Object target,
int maximum)
Return the hashcode (0 <= hashcode <32maximum).
- hash in interface Delegate
is_a
public boolean is_a(Object target,
String repositoryIdentifer)
Check if this object can be referenced by the given repository id.
- is_a in interface Delegate
target
- the CORBA object, must be an instance of
ObjectImpl
.repositoryIdentifer
- the repository id.
- true if the passed parameter is a repository id of this
CORBA object.
is_equivalent
public boolean is_equivalent(Object target,
Object other)
Returns true if the objects are the same or have the same delegate set. All
objects in this implementation have a separate delegate.
- is_equivalent in interface Delegate
orb
public ORB orb(Object target)
Returns the ORB, passed in constructor,
regardless of the argument. This class requires a single instance
per each object.
- orb in interface Delegate
setIor
public void setIor(IOR an_ior)
Set the IOR of this object. The IOR must be newly set if
the server reports that the object has permanently moved to a new
location.
Local_delegate.java --
Copyright (C) 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath 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 for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.