Ejemplo n.º 1
0
 static Set toImmutableSet(Object obj) {
   Set set = new HashSet();
   set.add(obj);
   set = Collections.unmodifiableSet(set);
   return set;
 }
Ejemplo n.º 2
0
 Collection getServiceCollection() {
   // TBD think about threads?!
   return Collections.unmodifiableSet(fwCtx.listeners.serviceListeners.serviceSet);
 }