|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.inject.AbstractModule
public abstract class AbstractModule
Skeleton implementation of injection module with convenience methods for binding definitions.
| Constructor Summary | |
|---|---|
AbstractModule()
|
|
| Method Summary | ||
|---|---|---|
org.glassfish.hk2.NamedBinder<java.lang.Object> |
bind()
This method can be called only in the execution context of the configure()
method. |
|
|
bind(java.lang.Class<T> contract,
java.lang.Class<?>... contracts)
This method can be called only in the execution context of the configure()
method. |
|
org.glassfish.hk2.Binder<java.lang.Object> |
bind(java.lang.String... contractNames)
This method can be called only in the execution context of the configure()
method. |
|
org.glassfish.hk2.Binder<java.lang.Object> |
bind(java.lang.String contractName)
This method can be called only in the execution context of the configure()
method. |
|
|
bind(org.glassfish.hk2.TypeLiteral<T> typeLiteral)
This method can be called only in the execution context of the configure()
method. |
|
protected abstract void |
configure()
Implement to provide module binding definitions using the exposed binding methods. |
|
void |
configure(org.glassfish.hk2.BinderFactory binderFactory)
|
|
org.glassfish.hk2.BinderFactory |
inParent()
This method can be called only in the execution context of the configure()
method. |
|
void |
install(org.glassfish.hk2.Module... modules)
Adds all binding definitions from the modules to the binding configuration. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractModule()
| Method Detail |
|---|
public void configure(org.glassfish.hk2.BinderFactory binderFactory)
configure in interface org.glassfish.hk2.Moduleprotected abstract void configure()
public final org.glassfish.hk2.BinderFactory inParent()
configure()
method.
inParent in interface org.glassfish.hk2.BinderFactorypublic final org.glassfish.hk2.Binder<java.lang.Object> bind(java.lang.String contractName)
configure()
method.
bind in interface org.glassfish.hk2.BinderFactorypublic final org.glassfish.hk2.Binder<java.lang.Object> bind(java.lang.String... contractNames)
configure()
method.
bind in interface org.glassfish.hk2.BinderFactory
public final <T> org.glassfish.hk2.Binder<T> bind(java.lang.Class<T> contract,
java.lang.Class<?>... contracts)
configure()
method.
bind in interface org.glassfish.hk2.BinderFactorypublic final <T> org.glassfish.hk2.Binder<T> bind(org.glassfish.hk2.TypeLiteral<T> typeLiteral)
configure()
method.
bind in interface org.glassfish.hk2.BinderFactorypublic final org.glassfish.hk2.NamedBinder<java.lang.Object> bind()
configure()
method.
bind in interface org.glassfish.hk2.BinderFactorypublic final void install(org.glassfish.hk2.Module... modules)
modules - modules whose binding definitions should be configured.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||