org.erights.e.elang.interp
Class ResourceUriGetter

java.lang.Object
  |
  +--org.erights.e.elib.serial.BaseLoader
        |
        +--org.erights.e.elang.interp.ResourceUriGetter
All Implemented Interfaces:
Loader, Uncaller

public class ResourceUriGetter
extends BaseLoader

Untamed: Bound to resource__uriGetter in the safe scope


Field Summary
static ResourceUriGetter THE_ONE
          Enabled:
 
Constructor Summary
private ResourceUriGetter()
           
 
Method Summary
 Object get(String relpath)
          Enabled: <resource:...> expands to resource__uriGetter.get(...)
 Object[] optUncall(Object obj)
          Enabled: XXX This one is unimplemented, and we should expect it to be unimplemented for awhile, as it's hard.
 String toString()
          Suppressed:
 
Methods inherited from class org.erights.e.elib.serial.BaseLoader
getOptWrappingUncall, optUnget, ungetToUncall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

THE_ONE

public static final ResourceUriGetter THE_ONE
Enabled:

Constructor Detail

ResourceUriGetter

private ResourceUriGetter()
Method Detail

get

public Object get(String relpath)
Enabled: <resource:...> expands to resource__uriGetter.get(...)


optUncall

public Object[] optUncall(Object obj)
Enabled: XXX This one is unimplemented, and we should expect it to be unimplemented for awhile, as it's hard.

The problem is, the URL returned ClassLoader.getSystemResource(java.lang.String) is not one that necessarily came from that source. For example, <resource:scripts/eBrowser.e-awt> just returns a URL that could have been returned by <fileURL:.../scripts/eBrowser.e-awt> and can be uncalled by fileURL__uriGetter.

Parameters:
obj -
Returns:

toString

public String toString()
Suppressed:

Overrides:
toString in class Object
Returns:
a string representation of the object.


comments?