ServiceType some = r.find(clazz);
ServiceType some = r.find(clazz);
/** * Find the script type with requested name. * @param name (display) name of script type to find * @return the desired script type or <code>null</code> if it does not exist */ public static ScriptType find (String name) { ServiceType t = ((ServiceType.Registry)Lookup.getDefault().lookup(ServiceType.Registry.class)).find (name); if (t instanceof ScriptType) { return (ScriptType)t; } else { return null; } }
ServiceType some = r.find(clazz);
ServiceType some = r.find (clazz); while (en.hasMoreElements ()) { ServiceType t = (ServiceType)en.nextElement ();
ServiceType some = r.find (clazz); while (en.hasMoreElements ()) { ServiceType t = (ServiceType)en.nextElement ();
ServiceType some = r.find(clazz);
String stName = name; ServiceType.Registry r = (ServiceType.Registry)Lookup.getDefault().lookup(ServiceType.Registry.class); for (int i = 1; r.find(stName) != null; i++) { stName = new StringBuffer(name.length() + 2). append(name).append('_').append(i).toString();
/** Override to specially look up no-op services. */ public ServiceType find (String name) { Map<String, ServiceType> lookupMap = name2Service; ServiceType ret; synchronized (lookupMap) { ret = lookupMap.get(name); } if (ret == null) { ret = super.find(name); synchronized (lookupMap) { lookupMap.put(name, ret); } } return ret; }