#104312# Adapted to new TypedProxy.
This commit is contained in:
parent
8e8004db87
commit
a8603cd04b
1 changed files with 12 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
||||||
*
|
*
|
||||||
* $RCSfile: java_environment.java,v $
|
* $RCSfile: java_environment.java,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.9 $
|
* $Revision: 1.10 $
|
||||||
*
|
*
|
||||||
* last change: $Author: dbo $ $Date: 2002-10-29 09:17:05 $
|
* last change: $Author: sb $ $Date: 2002-10-30 15:32:05 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
|
@ -76,6 +76,7 @@ import com.sun.star.lib.sandbox.generic.Dispatcher;
|
||||||
import com.sun.star.lib.sandbox.generic.DispatcherAdapterBase;
|
import com.sun.star.lib.sandbox.generic.DispatcherAdapterBase;
|
||||||
import com.sun.star.lib.sandbox.generic.DispatcherAdapterFactory;
|
import com.sun.star.lib.sandbox.generic.DispatcherAdapterFactory;
|
||||||
|
|
||||||
|
import com.sun.star.lib.uno.TypedProxy;
|
||||||
import com.sun.star.lib.uno.typedesc.TypeDescription;
|
import com.sun.star.lib.uno.typedesc.TypeDescription;
|
||||||
|
|
||||||
import com.sun.star.uno.IEnvironment;
|
import com.sun.star.uno.IEnvironment;
|
||||||
|
@ -91,7 +92,7 @@ import com.sun.star.uno.XInterface;
|
||||||
* interface defined in the uno runtime.
|
* interface defined in the uno runtime.
|
||||||
* <p>
|
* <p>
|
||||||
* <p>
|
* <p>
|
||||||
* @version $Revision: 1.9 $ $ $Date: 2002-10-29 09:17:05 $
|
* @version $Revision: 1.10 $ $ $Date: 2002-10-30 15:32:05 $
|
||||||
* @author Kay Ramme
|
* @author Kay Ramme
|
||||||
* @see com.sun.star.uno.UnoRuntime
|
* @see com.sun.star.uno.UnoRuntime
|
||||||
* @see com.sun.star.uno.IEnvironment
|
* @see com.sun.star.uno.IEnvironment
|
||||||
|
@ -107,7 +108,9 @@ public class java_environment implements IEnvironment, Disposable {
|
||||||
/*
|
/*
|
||||||
** This is the holder proxy, which one gets while trying to get a registered object
|
** This is the holder proxy, which one gets while trying to get a registered object
|
||||||
*/
|
*/
|
||||||
static public class HolderProxy extends DispatcherAdapterBase implements Dispatcher, XInterface, IQueryInterface {
|
static public class HolderProxy extends DispatcherAdapterBase
|
||||||
|
implements Dispatcher, XInterface, IQueryInterface, TypedProxy
|
||||||
|
{
|
||||||
static private Hashtable __methodss = new Hashtable();
|
static private Hashtable __methodss = new Hashtable();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -201,6 +204,11 @@ public class java_environment implements IEnvironment, Disposable {
|
||||||
return UnoRuntime.generateOid(object);
|
return UnoRuntime.generateOid(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @see com.sun.star.lib.uno.TypedProxy#getType
|
||||||
|
public Type getType() {
|
||||||
|
return _type;
|
||||||
|
}
|
||||||
|
|
||||||
public void finalize() {
|
public void finalize() {
|
||||||
if(java_environment.DEBUG) System.err.println("###################### Proxy Proxy is dying");
|
if(java_environment.DEBUG) System.err.println("###################### Proxy Proxy is dying");
|
||||||
_holder.decRefCount();
|
_holder.decRefCount();
|
||||||
|
|
Loading…
Reference in a new issue