}
return new ResourceConfiguration(owningClass.getName(), null, ResourceConfiguration.TargetType.CLASS, resource.type(), resource.name(), resource.mappedName());
}
private List<ResourceConfiguration> processClassResources(final Class<?> owningClass) throws DeploymentUnitProcessingException {
final Resources resources = owningClass.getAnnotation(Resources.class);
if(resources == null) {
return Collections.emptyList();
}
final Resource[] resourceAnnotations = resources.value();
final List<ResourceConfiguration> resourceConfigurations = new ArrayList<ResourceConfiguration>(resourceAnnotations.length);
for(Resource resource : resourceAnnotations) {
resourceConfigurations.add(processClassResource(owningClass, resource));
}
return resourceConfigurations;