Interface ModuleResourcePathResolver
-
- All Known Implementing Classes:
DefaultModuleResourcePathResolver
public interface ModuleResourcePathResolverResolves the by default target path within a module for a given resource based on it's type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(String resourceType)Indicates if this path resolver resolves the given resource type.intgetPriority()org.uberfire.backend.vfs.PathresolveDefaultPath(org.guvnor.common.services.project.model.Package pkg)Given a package resolves where the currently accepted resourceType should be placed by default.
-
-
-
Method Detail
-
getPriority
int getPriority()
- Returns:
- Defines the resolver priority. If two resolvers are found for the same resource type, the one with highest priority will be used.
-
accept
boolean accept(String resourceType)
Indicates if this path resolver resolves the given resource type.- Parameters:
resourceType- a file extension.- Returns:
- true if current resolver resolves the given resourceType, false in any other case.
-
resolveDefaultPath
org.uberfire.backend.vfs.Path resolveDefaultPath(org.guvnor.common.services.project.model.Package pkg)
Given a package resolves where the currently accepted resourceType should be placed by default. e.g. for a package org.kie and a drl extension, the by default target path will be src/main/resources/org/kie, and for a java extension with the same package the by default target path will be src/main/java/org/kie- Parameters:
pkg- A package within a module.- Returns:
- the expected by default path for the given extension.
-
-