T
- is the generic type of the JAXB bean
.public interface JaxbBeanHolder<T> extends Refreshable
holding
a JAXB bean. Storing this JaxbBeanHolder
instead of the bean
itself in a field of some class allows the actual bean
to be reloaded
in the meantime. If Flushable
is implemented, then
it can also be saved via Flushable.flush()
.Modifier and Type | Method and Description |
---|---|
T |
getBean()
This method gets the current JAXB bean.
|
boolean |
refresh()
This method will reload the
configuration if it has changed. |
T getBean()
boolean refresh()
configuration
if it has changed.
This method refreshes the given object. This can be anything from reloading configuration to rebuilding
the internal state. An invocation of this method may be expensive and should only be invoked as needed.
The implementation of this method should be thread-safe if the object itself is to be used by separate
consumers at all.refresh
in interface Refreshable
true
if something has changed, false
otherwise. If the implementation
can not determine the change it should return true
.Copyright © 2001–2014 mmm-Team. All rights reserved.