Esempio n. 1
0
 public void start() {
   if (this.isStarted()) return;
   super.start();
   if (this.context.getObject(this.name) != null)
     throw (new IllegalArgumentException(
         String.format("duplicate object name found `%s`", this.name)));
   this.context.putObject(this.name, this);
 }
Esempio n. 2
0
 public void stop() {
   if (!this.isStarted()) return;
   this.context.putObject(this.name, null);
   super.stop();
 }