diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2002-07-19 08:02:20 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2002-07-19 08:02:20 +0000 |
commit | f025135f6f200045ebaca2ef78e8f04f1b8878cd (patch) | |
tree | 7721677daa8aee7370e3abeae08ea457ab6a7221 /sandbox | |
parent | 80b8a6bf05e942bc15e37d333113c15b6bc6c3f2 (diff) |
#101084# resources are now held hard, otherwise resource might become garbagecollected
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/com/sun/star/lib/sandbox/ClassContext.java | 6 | ||||
-rw-r--r-- | sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java | 9 | ||||
-rw-r--r-- | sandbox/com/sun/star/lib/sandbox/ClassContextProxy.java | 8 |
3 files changed, 17 insertions, 6 deletions
diff --git a/sandbox/com/sun/star/lib/sandbox/ClassContext.java b/sandbox/com/sun/star/lib/sandbox/ClassContext.java index 5791e9166546..df84d9277a0d 100644 --- a/sandbox/com/sun/star/lib/sandbox/ClassContext.java +++ b/sandbox/com/sun/star/lib/sandbox/ClassContext.java @@ -2,9 +2,9 @@ * * $RCSfile: ClassContext.java,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:24:28 $ + * last change: $Author: jbu $ $Date: 2002-07-19 09:02:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,5 +83,7 @@ public interface ClassContext { public void dispose(); public ClassLoader getClassLoader(); + + public void addCargo( Object cargo ); } diff --git a/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java b/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java index 463576681969..ba54b7f1bc2f 100644 --- a/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java +++ b/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java @@ -2,9 +2,9 @@ * * $RCSfile: ClassContextImpl.java,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: kr $ $Date: 2001-04-10 15:04:04 $ + * last change: $Author: jbu $ $Date: 2002-07-19 09:02:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,6 +88,7 @@ final class ClassContextImpl extends ClassLoader implements ClassContext { private URL codeBase; private ProtectionDomain protectionDomain; private boolean _bSecure; + private java.util.Vector _cargoVector = new java.util.Vector(); // HACKHACK!!!: java.lang.Thread fragt bei erzeugen eines Threads den // HACKHACK!!!: SECURITYMANAGER nach der THREADGROUP @@ -117,6 +118,10 @@ final class ClassContextImpl extends ClassLoader implements ClassContext { return codeBase; } + public void addCargo( Object cargo ) { + _cargoVector.addElement( cargo ); + } + // For OS/2 public URL getCodeBase() { diff --git a/sandbox/com/sun/star/lib/sandbox/ClassContextProxy.java b/sandbox/com/sun/star/lib/sandbox/ClassContextProxy.java index dcfa03e04cba..26205d9a91a6 100644 --- a/sandbox/com/sun/star/lib/sandbox/ClassContextProxy.java +++ b/sandbox/com/sun/star/lib/sandbox/ClassContextProxy.java @@ -2,9 +2,9 @@ * * $RCSfile: ClassContextProxy.java,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:24:28 $ + * last change: $Author: jbu $ $Date: 2002-07-19 09:02:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -167,6 +167,10 @@ public final class ClassContextProxy implements ClassContext, Cachable { return classContext.getResource(name); } + public void addCargo( Object cargo ) { + classContext.addCargo( cargo ); + } + public void dispose() { // HIER SOLLTE VIELLEICHT NOCH MEHR GETAN WERDEN? classContext.dispose(); } |