Class ClasspathResourceLocatorStrategy
- java.lang.Object
-
- org.apache.maven.shared.io.location.ClasspathResourceLocatorStrategy
-
- All Implemented Interfaces:
LocatorStrategy
public class ClasspathResourceLocatorStrategy extends java.lang.Object implements LocatorStrategy
classpath resource locator strategy.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
tempFileDeleteOnExit
private java.lang.String
tempFilePrefix
private java.lang.String
tempFileSuffix
-
Constructor Summary
Constructors Constructor Description ClasspathResourceLocatorStrategy()
Create instance.ClasspathResourceLocatorStrategy(java.lang.String tempFilePrefix, java.lang.String tempFileSuffix, boolean tempFileDeleteOnExit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location
resolve(java.lang.String locationSpecification, MessageHolder messageHolder)
-
-
-
Constructor Detail
-
ClasspathResourceLocatorStrategy
public ClasspathResourceLocatorStrategy()
Create instance.
-
ClasspathResourceLocatorStrategy
public ClasspathResourceLocatorStrategy(java.lang.String tempFilePrefix, java.lang.String tempFileSuffix, boolean tempFileDeleteOnExit)
- Parameters:
tempFilePrefix
- Prefix.tempFileSuffix
- Suffix.tempFileDeleteOnExit
- delete on exit.
-
-
Method Detail
-
resolve
public Location resolve(java.lang.String locationSpecification, MessageHolder messageHolder)
- Specified by:
resolve
in interfaceLocatorStrategy
- Parameters:
locationSpecification
- the specification.messageHolder
-MessageHolder
- Returns:
Location
-
-