|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.routing.SingletonResourceBinder
public class SingletonResourceBinder
Class used to bind singleton resources classes into HK2.
| Nested Class Summary | |
|---|---|
static class |
SingletonResourceBinder.SingletonResourceBinderBinder
Injection binder for SingletonResourceBinder. |
| Constructor Summary | |
|---|---|
SingletonResourceBinder()
|
|
| Method Summary | ||
|---|---|---|
|
bindResourceClassAsSingleton(java.lang.Class<T> resourceClass)
Binds resourceClass into HK2 context as singleton. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingletonResourceBinder()
| Method Detail |
|---|
public <T> void bindResourceClassAsSingleton(java.lang.Class<T> resourceClass)
resourceClass into HK2 context as singleton.
The bound class is then cached internally so that any sub-sequent attempt to bind that class
as a singleton is silently ignored.
T - type of the resource class.resourceClass - resource class that should be bound. If the class is not
annotated with Singleton annotation it
will be ignored by this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||