Beispiel #1
0
 protected void unbindYard(Yard yard) {
   if (yard != null && yards.containsKey(yard.getId())) {
     Map<String, Yard> tmp = new HashMap<String, Yard>(yards);
     tmp.remove(yard.getId());
     this.yards = Collections.unmodifiableMap(tmp);
   }
 }
Beispiel #2
0
 //    private ComponentContext context;
 //    @Activate
 //    protected void activate(ComponentContext context){
 //        log.debug("activating "+getClass()+" with "+context);
 //        //nothing to do for now!
 //        this.context = context;
 //    }
 //    @Deactivate
 //    protected void deactivate(ComponentContext context){
 //        context = null;
 //    }
 protected void bindYard(Yard yard) {
   if (yard != null) {
     Map<String, Yard> tmp = new HashMap<String, Yard>(yards);
     tmp.put(yard.getId(), yard);
     this.yards = Collections.unmodifiableMap(tmp);
   }
 }