samples/consistency/src-api2.0/api/Lookups.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 10:04:51 +0200
changeset 209 1c999569643b
parent 199 ef3e24d5cb1c
child 210 acf2c31e22d4
permissions -rw-r--r--
to the end of daily_life
jtulach@26
     1
package api;
jtulach@26
     2
jtulach@26
     3
import java.util.Collection;
jtulach@26
     4
import java.util.Set;
jtulach@26
     5
jtulach@26
     6
/** Factory to create various types of lookup instances.
jtulach@26
     7
 *
jtulach@26
     8
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jtulach@26
     9
 * @version 2.0
jtulach@26
    10
 */
jtulach@26
    11
public final class Lookups {
jtulach@26
    12
    private Lookups() {
jtulach@26
    13
    }
jtulach@26
    14
    
jtulach@209
    15
    public static Lookup fixed(Object... instances) {
jtulach@209
    16
        return null;
jtulach@26
    17
    }
jtulach@26
    18
    
jtulach@209
    19
    public static Lookup dynamic(Dynamic provider) {
jtulach@209
    20
        return null;
jtulach@26
    21
    }
jtulach@26
    22
    
jtulach@26
    23
    public interface Dynamic {
jtulach@26
    24
        public <T> void computeInstances(Class<T> requestedType, Collection<? super T> addInstancesTo);
jtulach@26
    25
    }
jtulach@26
    26
}