Bug 198201 [DataBinding] Provide POJO observables
There have been quite a few requests on the newsgroup recently about trying to use POJOs and filling up logs with error messages about not being able to register property change event listeners. It would be nice to provide a cleaner solution than using the JavaBean support that we provide today.
bundles/org.eclipse.core.databinding.beans/src/org/eclipse/core/internal/databinding/internal/beans/JavaBeanObservableValue.java
IStatus.OK,
										"Could not read value of " + object + "." + propertyDescriptor.getName(), e)); 
			}
			return null;
		}
	}
	protected void lastListenerRemoved() {
		unhookListener();
	}
	private void unhookListener() {
		if (listenerSupport != null) {
			listenerSupport.dispose();
			listenerSupport = null;
		}
	}
	public Object getValueType() {
		return propertyDescriptor.getPropertyType();
	}
	public Object getObserved() {
		return object;
	}
	public PropertyDescriptor getPropertyDescriptor() {
		return propertyDescriptor;
	}
	public synchronized void dispose() {
		unhookListener();
		super.dispose();
	}
}