use of org.apache.deltaspike.core.api.resourceloader.InjectableResource in project deltaspike by apache.
the class InjectableResourceProducer method getInputStreams.
@Produces
@InjectableResource(resourceProvider = InjectableResourceProvider.class, location = "")
public List<InputStream> getInputStreams(final InjectionPoint injectionPoint) {
InjectableResource injectableResource = getAnnotation(injectionPoint);
InjectableResourceProvider provider = BeanProvider.getContextualReference(injectableResource.resourceProvider());
return provider.readStreams(injectableResource);
}
use of org.apache.deltaspike.core.api.resourceloader.InjectableResource in project deltaspike by apache.
the class InjectableResourceProducer method getInputStream.
@Produces
@InjectableResource(resourceProvider = InjectableResourceProvider.class, location = "")
public InputStream getInputStream(final InjectionPoint injectionPoint) {
InjectableResource injectableResource = getAnnotation(injectionPoint);
InjectableResourceProvider provider = BeanProvider.getContextualReference(injectableResource.resourceProvider());
final InputStream is = provider.readStream(injectableResource);
return is;
}
use of org.apache.deltaspike.core.api.resourceloader.InjectableResource in project deltaspike by apache.
the class InjectableResourceProducer method getProperties.
@Produces
@InjectableResource(resourceProvider = InjectableResourceProvider.class, location = "")
public Properties getProperties(final InjectionPoint injectionPoint) throws IOException {
InjectableResource injectableResource = getAnnotation(injectionPoint);
InjectableResourceProvider provider = BeanProvider.getContextualReference(injectableResource.resourceProvider());
final Properties properties = provider.readProperties(injectableResource);
return properties;
}
Aggregations