public interface ResourceLocator
Resource and Resources annotated objects. Bind
one or more instances via BootstrapBinder.bindResourceLocator().| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
locate(javax.annotation.Resource resource,
ResourceLocator nextInChain)
Load and return the given resource.
|
java.lang.Object locate(javax.annotation.Resource resource,
ResourceLocator nextInChain)
throws java.lang.Exception
NameNotFoundException.resource - the resource to load - NOTE: type() and name() will have been adjusted if defaults were used.nextInChain - the next locator in the chain (never null)java.lang.Exception - errors