C
- Class to handleH
- Handler classpublic class HandlersHolder<C,H> extends Object
Constructor and Description |
---|
HandlersHolder() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(Class<? extends C> c,
H h) |
H |
getHandlerInstance(Class<? extends C> c)
Gets handler for this class or for the first found in class parent hierarchy or default
|
H |
getStrictHandler(Class<? extends C> c)
gets handler for this class precisely, or null
|
void |
setDefaultHandler(H h) |