author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:53:43 +0200 | |
changeset 82 | d098b8e4de15 |
permissions | -rw-r--r-- |
1 package org.apidesign.component;
3 import java.util.Collection;
4 import org.openide.util.Lookup;
6 // BEGIN: lookup.define.slot
7 public class InjectionSlot {
8 public static InjectionSlot singleSlot() {
9 // get one implementation
10 return Lookup.getDefault().lookup(InjectionSlot.class);
11 }
13 public static Collection<? extends InjectionSlot> multiSlot() {
14 // get all registered implementations
15 return Lookup.getDefault().lookupAll(InjectionSlot.class);
16 }
17 }
18 // END: lookup.define.slot