com.atlassian.bamboo.utils
Class ResourceResolver

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

public class ResourceResolver
extends 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
 URL findResource(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 URL findResource(@NotNull
                                 String resourceName)
Parameters:
resourceName -
Returns:
Throws:
IllegalArgumentException - if resourceName is null


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.