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 |
close() |
org.drombler.commons.context.Context |
getLocalContext() |
boolean |
isDirty() |
protected void |
markClean() |
void |
markDirty() |
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>
public boolean isDirty()
isDirty
in interface org.drombler.commons.data.DataHandler<T>
protected void markClean()
public void close()
close
in interface AutoCloseable
Copyright © 2012–2017 Drombler. All rights reserved.