Examples of ResourcePath


Examples of com.esri.gpt.framework.util.ResourcePath

 
 
  // XML parser load doc specified by filename
  DocumentBuilder builder = DocumentBuilderFactory.newInstance()
      .newDocumentBuilder();
  ResourcePath rscPath = new ResourcePath();
  InputSource configFile = rscPath.makeInputSource(
      configuration_folder_path + filename);
  if (configFile == null) {
    configFile = rscPath.makeInputSource(
        "/" + configuration_folder_path + filename);
  }

  Document doc = builder.parse(configFile);
 
View Full Code Here

Examples of gc.base.util.ResourcePath

   * @throws SAXException if an exception occurs during XML parsing
   * @throws IOException if an i/o exception occurs
   */
  public static Document makeDomFromResourcePath(String path, boolean namespaceAware)
      throws ParserConfigurationException, SAXException, IOException {
    ResourcePath rp = new ResourcePath();
    return makeDom(rp.makeInputSource(path),namespaceAware);
  }
View Full Code Here

Examples of greed.util.ResourcePath

* Greed is good! Cheers!
*/
public class TemplateFileParser extends ExpressionParser<ResourcePath> {
    @Override
    public ResourcePath raw(String templatePath) {
        return new ResourcePath(templatePath, false);
    }
View Full Code Here

Examples of org.apache.sling.models.annotations.injectorspecific.ResourcePath

        String resourcePath = null;
        Path pathAnnotation = element.getAnnotation(Path.class);
        if (pathAnnotation != null) {
            resourcePath = pathAnnotation.value();
        } else {
            ResourcePath resourcePathAnnotation = element.getAnnotation(ResourcePath.class);
            if (resourcePathAnnotation != null) {
                resourcePath = resourcePathAnnotation.path();
                if (resourcePath.isEmpty()) {
                    resourcePath = null;
                }
            }
View Full Code Here

Examples of org.apache.sling.models.annotations.injectorspecific.ResourcePath

    }

    @Override
    public InjectAnnotationProcessor createAnnotationProcessor(Object adaptable, AnnotatedElement element) {
        // check if the element has the expected annotation
        ResourcePath annotation = element.getAnnotation(ResourcePath.class);
        if (annotation != null) {
            return new ResourcePathAnnotationProcessor(annotation, adaptable);
        }
        return null;
    }
View Full Code Here

Examples of org.richfaces.resource.mapping.ResourcePath

        if (mappedResource == null) {
            return null;
        }

        resourceTracker.markResourceRendered(context, resourceKey);
        ResourcePath path = new ResourcePath(mappedResource.getRequestPath());
        Set<ResourceKey> aggregatedResources = mappedResourceFactory.getAggregatedResources(path);
        for (ResourceKey key : aggregatedResources) {
            resourceTracker.markResourceRendered(context, key);
        }
View Full Code Here

Examples of org.richfaces.resource.mapping.ResourcePath

            }

            return new ResourceMapping() {
                @Override
                public ResourcePath getResourcePath(FacesContext context) {
                    return new ResourceServletMapping(new ResourcePath(mapped)).getResourcePath(context);
                }
            };
        }
View Full Code Here

Examples of org.richfaces.resource.mapping.ResourcePath

    public URLResource(ResourcePath resourcePath) {
        this.path = resourcePath;
    }

    public URLResource(URL url) {
        this.path = new ResourcePath(url);
    }
View Full Code Here

Examples of org.richfaces.resource.mapping.ResourcePath

    public Resource createResource(FacesContext context, ResourceKey resourceKey) {
        for (ResourceMapper mapper : mappers) {
            ResourceMapping mapping = mapper.mapResource(resourceKey);

            if (mapping != null) {
                ResourcePath path = mapping.getResourcePath(context);
                return new URLResource(path);
            }
        }

        return null;
View Full Code Here

Examples of org.wicketstuff.rest.annotations.ResourcePath

  }

  private static void mountAnnotatedResource(WebApplication application, Class<?> clazz)
      throws InstantiationException, IllegalAccessException
  {
    ResourcePath mountAnnotation = clazz.getAnnotation(ResourcePath.class);

    if (mountAnnotation == null || !IResource.class.isAssignableFrom(clazz))
    {
      return;
    }

    String path = mountAnnotation.value();
    final IResource resourceInstance = (IResource) clazz.newInstance();

    application.mountResource(path, new ResourceReference(clazz.getSimpleName())
    {
      /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.