|
||||||||||
| 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 | ||
|---|---|---|
|
addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
This method can be called only in the execution context of the configure()
method. |
|
|
addActiveDescriptor(java.lang.Class<T> rawClass)
This method can be called only in the execution context of the configure()
method. |
|
void |
addUnbindFilter(Filter unbindFilter)
This method can be called only in the execution context of the configure()
method. |
|
ActiveDescriptor<?> |
bind(Descriptor descriptor)
This method can be called only in the execution context of the configure()
method. |
|
void |
bind(DynamicConfiguration configuration)
|
|
FactoryDescriptors |
bind(FactoryDescriptors factoryDescriptors)
This method can be called only in the execution context of the configure()
method. |
|
void |
commit()
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 |
install(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 bind(DynamicConfiguration configuration)
bind in interface Binderprotected abstract void configure()
public ActiveDescriptor<?> bind(Descriptor descriptor)
configure()
method.
bind in interface DynamicConfigurationpublic FactoryDescriptors bind(FactoryDescriptors factoryDescriptors)
configure()
method.
bind in interface DynamicConfiguration
public <T> ActiveDescriptor<T> addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
throws java.lang.IllegalArgumentException
configure()
method.
addActiveDescriptor in interface DynamicConfigurationjava.lang.IllegalArgumentException
public <T> ActiveDescriptor<T> addActiveDescriptor(java.lang.Class<T> rawClass)
throws MultiException,
java.lang.IllegalArgumentException
configure()
method.
addActiveDescriptor in interface DynamicConfigurationMultiException
java.lang.IllegalArgumentException
public void addUnbindFilter(Filter unbindFilter)
throws java.lang.IllegalArgumentException
configure()
method.
addUnbindFilter in interface DynamicConfigurationjava.lang.IllegalArgumentException
public void commit()
throws MultiException
configure()
method.
commit in interface DynamicConfigurationMultiExceptionpublic final void install(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 | |||||||||