title: event notification in Java
body: <p>In java, I feed very confused on observer pattern or JMS. I want to use the event notification like below. <strong>Let us forget about those JMS or Observer</strong>, do you think it is possible or doable ? if yes, how to complete it ? </p>
  
  <pre><code>newSalesOrder = new SalesOrder();
  newSalesOrder.notified("new SalesOrder order ID="+orderId);
  
  EventRegister.bindEvent(SalesOrder.class, Delivery.class);
  EventRegister.bindEvent(SalesOrder.class, Warehouse.class);
  
  ////////////
  Delivery delivery = new Delivery();
  delivery.listerning(new Event(source){
    if(source == SalesOrder.class){
  
    }  
  });
  
  //////////
  Warehouse warehouse = new Warehouse();
  warehouse.listerning(new Event(source){
    if(source == SalesOrder.class){
  
    }  
  });
  
  ///////////
  EventRegister{
      static bindEvent(Class source, Class destination){
        //???
      }
  }
  </code></pre>