author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:58:11 +0200 | |
changeset 154 | 0fd5e9c500b9 |
parent 153 | b5cbb797ec0a |
permissions | -rw-r--r-- |
jtulach@113 | 1 |
package org.apidesign.gc; |
jtulach@113 | 2 |
|
jtulach@113 | 3 |
import java.util.EventListener; |
jtulach@113 | 4 |
|
jtulach@113 | 5 |
public final class WeakListeners { |
jtulach@113 | 6 |
private WeakListeners() { } |
jtulach@113 | 7 |
|
jtulach@113 | 8 |
// BEGIN: gc.weaklistener.create |
jtulach@154 | 9 |
public static <T extends EventListener> T create( |
jtulach@154 | 10 |
Class<T> type, T listener, Object source |
jtulach@154 | 11 |
) { |
jtulach@154 | 12 |
return org.openide.util.WeakListeners.create( |
jtulach@154 | 13 |
type, listener, source |
jtulach@154 | 14 |
); |
jtulach@113 | 15 |
} |
jtulach@113 | 16 |
// END: gc.weaklistener.create |
jtulach@113 | 17 |
} |