T - extensions typepublic abstract class AbstractJerseyInstaller<T> extends InstallerOptionsSupport implements FeatureInstaller<T>, JerseyInstaller<T>
JerseyInstaller). Provides common utilities.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractJerseyInstaller() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindInGuice(com.google.inject.Binder binder,
java.lang.Class<?> type)
Bind to guice context.
|
protected boolean |
isForceSingleton(java.lang.Class<?> type,
boolean hkManaged)
Singleton binding should not be forced if bean has explicit scope declaration.
|
protected boolean |
isJerseyExtension(java.lang.Class<?> type) |
protected boolean |
isLazy(java.lang.Class<?> type,
boolean lazy)
Checks if lazy flag could be counted (only when extension is managed by guice).
|
option, setOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatches, reportinstallprotected boolean isLazy(java.lang.Class<?> type,
boolean lazy)
type - extension typelazy - lazy marker (annotation presence)protected boolean isJerseyExtension(java.lang.Class<?> type)
type - extension typeprotected void bindInGuice(com.google.inject.Binder binder,
java.lang.Class<?> type)
InstallersOptions.ForceSingletonForJerseyExtensions) and
if no explicit scope is declared with annotation on bean.binder - guice bindertype - extension typeprotected boolean isForceSingleton(java.lang.Class<?> type,
boolean hkManaged)
type - bean typehkManaged - true if bean is going to be managed by hk, false for guice management