public final class ResourceComponentInjector extends Object
Injectable instances and as a result the use of reflection is
minimized when performing injection.| Constructor and Description |
|---|
ResourceComponentInjector(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,
Object o)
Inject onto an instance of a resource class.
|
public ResourceComponentInjector(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, Object o)
c - the HTTP context, may be set to null if not available for the
current scope.o - the resource.Copyright © 2014 Oracle Corporation. All rights reserved.