T
- the type of the unique key of this data handlerpublic abstract class AbstractDataHandler<T> extends Object implements org.drombler.commons.data.DataHandler<T>, AutoCloseable
DataHandler
. It observes registered DataCapabilityProvider
s and adds the found data capabilities to it's local context.
You can use this class as a base class for your own data handler implementations.AbstractDocumentHandler
Constructor and Description |
---|
AbstractDataHandler()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
close() |
org.drombler.commons.context.Context |
getLocalContext() |
protected PropertyChangeSupport |
getPropertyChangeSupport() |
boolean |
isDirty() |
protected void |
markClean() |
void |
markDirty() |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
public AbstractDataHandler()
public org.drombler.commons.context.Context getLocalContext()
getLocalContext
in interface org.drombler.commons.context.LocalContextProvider
public void markDirty()
markDirty
in interface org.drombler.commons.data.DataHandler<T>
protected void markClean()
public boolean isDirty()
isDirty
in interface org.drombler.commons.data.DataHandler<T>
protected PropertyChangeSupport getPropertyChangeSupport()
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
addPropertyChangeListener
in interface org.softsmithy.lib.beans.Bean
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
removePropertyChangeListener
in interface org.softsmithy.lib.beans.Bean
public void close()
close
in interface AutoCloseable
Copyright © 2012–2017 Drombler. All rights reserved.