@ApplicationScoped public class DefaultModuleResourcePathResolver extends Object implements ModuleResourcePathResolver
Constructor and Description |
---|
DefaultModuleResourcePathResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String resourceType)
Indicates if this path resolver resolves the given resource type.
|
int |
getPriority() |
Path |
resolveDefaultPath(Package pkg)
Given a package resolves where the currently accepted resourceType should be placed by default.
|
public int getPriority()
getPriority
in interface ModuleResourcePathResolver
public boolean accept(String resourceType)
ModuleResourcePathResolver
accept
in interface ModuleResourcePathResolver
resourceType
- a file extension.public Path resolveDefaultPath(Package pkg)
ModuleResourcePathResolver
resolveDefaultPath
in interface ModuleResourcePathResolver
pkg
- A package within a module.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.