org.mule.module.launcher
Class DirectoryResourceLocator

java.lang.Object
  extended by org.mule.module.launcher.DirectoryResourceLocator
All Implemented Interfaces:
LocalResourceLocator

public class DirectoryResourceLocator
extends Object
implements LocalResourceLocator


Constructor Summary
DirectoryResourceLocator(String... directories)
           
 
Method Summary
 URL findLocalResource(String resourceName)
          This method finds a resource in the local environment for this artifact, if the resource is not found and the artifact has a parent artifact then the operation is resolved by that parent, if there is no parent, the resources is searched in the global environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryResourceLocator

public DirectoryResourceLocator(String... directories)
Method Detail

findLocalResource

public URL findLocalResource(String resourceName)
Description copied from interface: LocalResourceLocator
This method finds a resource in the local environment for this artifact, if the resource is not found and the artifact has a parent artifact then the operation is resolved by that parent, if there is no parent, the resources is searched in the global environment.

Specified by:
findLocalResource in interface LocalResourceLocator
Parameters:
resourceName - name of the resource to find.
Returns:
the resource URL, null if it doesn't exists.


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.