1 19 20 package org.netbeans.api.debugger; 21 22 import java.util.List ; 23 24 25 34 public final class DebuggerInfo { 35 36 private Lookup lookup; 37 38 39 48 public static DebuggerInfo create ( 49 String typeID, 50 Object [] services 51 ) { 52 return new DebuggerInfo ( 53 typeID, 54 services 55 ); 56 } 57 58 private DebuggerInfo ( 59 String typeID, 60 Object [] services 61 ) { 62 Object [] s = new Object [services.length + 1]; 63 System.arraycopy (services, 0, s, 0, services.length); 64 s [s.length - 1] = this; 65 lookup = new Lookup.Compound ( 66 new Lookup.Instance (s), 67 new Lookup.MetaInf (typeID) 68 ); 69 } 70 71 77 81 101 107 public List lookup (String folder, Class service) { 108 return lookup.lookup (folder, service); 109 } 110 111 117 public Object lookupFirst (String folder, Class service) { 118 return lookup.lookupFirst (folder, service); 119 } 120 121 Lookup getLookup () { 122 return lookup; 123 } 124 } 125 126 | Popular Tags |