org.apache.maven.plugin.checkstyle.resource
Class LicenseResourceManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.resource.DefaultResourceManager
          extended by org.apache.maven.plugin.checkstyle.resource.LicenseResourceManager
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, ResourceManager

@Component(role=org.codehaus.plexus.resource.ResourceManager.class,
           hint="license",
           instantiationStrategy="per-lookup")
public class LicenseResourceManager
extends DefaultResourceManager

License resource manager, to avoid defaulting license to maven-checkstyle-plugin's own license.

Since:
2.12

Field Summary
 
Fields inherited from interface org.codehaus.plexus.resource.ResourceManager
ROLE
 
Constructor Summary
LicenseResourceManager()
           
 
Method Summary
 void addSearchPath(String id, String path)
           
 PlexusResource getResource(String name)
           
 
Methods inherited from class org.codehaus.plexus.resource.DefaultResourceManager
createResourceAsFile, getResourceAsFile, getResourceAsFile, getResourceAsFile, getResourceAsInputStream, resolveLocation, resolveLocation, setOutputDirectory
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseResourceManager

public LicenseResourceManager()
Method Detail

addSearchPath

public void addSearchPath(String id,
                          String path)
Specified by:
addSearchPath in interface ResourceManager
Overrides:
addSearchPath in class DefaultResourceManager

getResource

public PlexusResource getResource(String name)
                           throws ResourceNotFoundException
Specified by:
getResource in interface ResourceManager
Overrides:
getResource in class DefaultResourceManager
Throws:
ResourceNotFoundException


Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.