xref: /AOO41X/main/javaunohelper/test/com/sun/star/lib/uno/helper/AWeakBase.java (revision a5b190bfa3e1bed4623e2958a8877664a3b5506c)
1*a5b190bfSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*a5b190bfSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*a5b190bfSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*a5b190bfSAndrew Rist  * distributed with this work for additional information
6*a5b190bfSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*a5b190bfSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*a5b190bfSAndrew Rist  * "License"); you may not use this file except in compliance
9*a5b190bfSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*a5b190bfSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*a5b190bfSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*a5b190bfSAndrew Rist  * software distributed under the License is distributed on an
15*a5b190bfSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*a5b190bfSAndrew Rist  * KIND, either express or implied.  See the License for the
17*a5b190bfSAndrew Rist  * specific language governing permissions and limitations
18*a5b190bfSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*a5b190bfSAndrew Rist  *************************************************************/
21*a5b190bfSAndrew Rist 
22*a5b190bfSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir package com.sun.star.lib.uno.helper;
25cdf0e10cSrcweir import com.sun.star.lang.XEventListener;
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir public class AWeakBase extends WeakBase implements XEventListener
29cdf0e10cSrcweir {
30cdf0e10cSrcweir     public int nDisposingCalled= 0;
31cdf0e10cSrcweir 
AWeakBase(int i)32cdf0e10cSrcweir     public AWeakBase(int i)
33cdf0e10cSrcweir     {
34cdf0e10cSrcweir     }
AWeakBase()35cdf0e10cSrcweir     public AWeakBase()
36cdf0e10cSrcweir     {
37cdf0e10cSrcweir     }
38cdf0e10cSrcweir 
disposing(com.sun.star.lang.EventObject eventObject)39cdf0e10cSrcweir     public void disposing(com.sun.star.lang.EventObject eventObject)
40cdf0e10cSrcweir     {
41cdf0e10cSrcweir //        System.out.println(getClass().getName() + " .disposing called");
42cdf0e10cSrcweir         nDisposingCalled++;
43cdf0e10cSrcweir     }
44cdf0e10cSrcweir 
45cdf0e10cSrcweir }
46cdf0e10cSrcweir 
47