com.atlassian.bamboo.utils
Class ResourceResolver

java.lang.Object
  extended by com.atlassian.bamboo.utils.ResourceResolver

public class ResourceResolver
extends java.lang.Object

A utility class the allows a resource name to resolve a a file from:

  1. Bamboo configiration folder - iff bootstrapManager is passed
  2. Currently running directory
  3. From the classpath


Constructor Summary
ResourceResolver(BootstrapManager bootstrapManager)
           
 
Method Summary
 java.net.URL findResource(java.lang.String resourceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceResolver

public ResourceResolver(@Nullable
                        BootstrapManager bootstrapManager)
Method Detail

findResource

@Nullable
public java.net.URL findResource(@NotNull
                                          java.lang.String resourceName)
Parameters:
resourceName -
Returns:
Throws:
java.lang.IllegalArgumentException - if resourceName is null


Copyright © 2010 Atlassian. All Rights Reserved.