author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:56:12 +0200 | |
changeset 132 | 3bc4c54f4bcc |
parent 113 | f2b6057a3376 |
child 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@132 | 9 |
public static <T extends EventListener> T create( |
jtulach@132 | 10 |
Class<T> type, T listener, Object source |
jtulach@132 | 11 |
) { |
jtulach@132 | 12 |
return org.openide.util.WeakListeners.create( |
jtulach@132 | 13 |
type, listener, source |
jtulach@132 | 14 |
); |
jtulach@113 | 15 |
} |
jtulach@113 | 16 |
// END: gc.weaklistener.create |
jtulach@113 | 17 |
} |