public WeakCloseListener(Object resource){
  _resourceRef=new WeakReference<Object>(resource);
}

public WeakCloseListener ( Object resource ) { _resourceRef = new WeakReference < Object > ( resource ) ; }
creates the new close listener .
