public final class ResourceComponentInjector
extends java.lang.Object
Injectable instances and as a result the use of reflection is
minimized when performing injection.| Constructor and Description |
|---|
ResourceComponentInjector(com.sun.jersey.server.impl.inject.ServerInjectableProviderContext ipc,
ComponentScope s,
AbstractResource resource)
Create a new resource component injector.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasInjectableArtifacts()
Ascertain if there are any injectable artifacts to be injected.
|
void |
inject(HttpContext c,
java.lang.Object o)
Inject onto an instance of a resource class.
|
public ResourceComponentInjector(com.sun.jersey.server.impl.inject.ServerInjectableProviderContext ipc,
ComponentScope s,
AbstractResource resource)
ipc - the injectable provider context to obtain injectables.s - the scope under which injection will be performed.resource - the abstract resource model.public boolean hasInjectableArtifacts()
public void inject(HttpContext c, java.lang.Object o)
c - the HTTP context, may be set to null if not available for the
current scope.o - the resource.Copyright © 2016 Oracle Corporation. All Rights Reserved.