Logo Search packages:      
Sourcecode: libloader version File versions  Download package

ResourceKey org::jfree::resourceloader::loader::resource::ClassloaderResourceLoader::createKey ( final Object  value,
final Map  factoryKeys 
) throws ResourceKeyCreationException [inline]

Creates a new resource key from the given object and the factory keys.

Parameters:
value 
factoryKeys 
Returns:
the created key.
Exceptions:
org.jfree.resourceloader.ResourceKeyCreationException if creating the key failed.

Definition at line 88 of file ClassloaderResourceLoader.java.

  {
    if (value instanceof String)
    {
      final String valueString = (String) value;
      if (valueString.startsWith("res://"))
      {
        return new ResourceKey(ClassloaderResourceLoader.class.getName(),
            value, factoryKeys);
      }
    }

    //throw new ResourceKeyCreationException("Unsupported identifier.");
    return null;
  }


Generated by  Doxygen 1.6.0   Back to index