|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.resources.rebind.context.AbstractResourceContext
public abstract class AbstractResourceContext
Defines base methods for ResourceContext implementations.
| Method Summary | ||
|---|---|---|
java.lang.String |
deploy(java.net.URL resource,
boolean xhrCompatible)
Cause a specific collection of bytes to be available in the program's compiled output. |
|
|
getCachedData(java.lang.String key,
java.lang.Class<T> clazz)
Retrieve data from the ResourceContext. |
|
JClassType |
getClientBundleType()
Return the interface type of the resource bundle being generated. |
|
GeneratorContext |
getGeneratorContext()
Return the GeneratorContext in which the overall resource generation framework is being run. |
|
java.lang.String |
getImplementationSimpleSourceName()
Returns the simple source name of the implementation of the bundle being generated. |
|
|
putCachedData(java.lang.String key,
T value)
Store data in the ResourceContext. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.resources.ext.ResourceContext |
|---|
deploy, supportsDataUrls |
| Method Detail |
|---|
public java.lang.String deploy(java.net.URL resource,
boolean xhrCompatible)
throws UnableToCompleteException
ResourceContext
deploy in interface ResourceContextresource - the resource to add to the compiled outputxhrCompatible - enforces compatibility with security restrictions if
the resource is intended to be accessed via an XMLHttpRequest.
UnableToCompleteException
public <T> T getCachedData(java.lang.String key,
java.lang.Class<T> clazz)
ResourceContext
getCachedData in interface ResourceContextT - the type of data to retrievekey - the key value passed to ResourceContext.getCachedData(java.lang.String, java.lang.Class) clazz - the type to which the cached value must be assignable
ResourceContext.putCachedData(java.lang.String, T) or
null if the data was not foundpublic JClassType getClientBundleType()
ResourceContext
getClientBundleType in interface ResourceContextpublic GeneratorContext getGeneratorContext()
ResourceContextResourceContext.deploy(java.lang.String, java.lang.String, byte[], boolean) over GeneratorContext#tryCreateResource in order to
take advantage of serving optimizations that can be performed by the bundle
architecture.
getGeneratorContext in interface ResourceContextpublic java.lang.String getImplementationSimpleSourceName()
ResourceContextSimpleSourceName.this).
getImplementationSimpleSourceName in interface ResourceContext
public <T> boolean putCachedData(java.lang.String key,
T value)
ResourceContext
putCachedData in interface ResourceContextT - the type of data being storedkey - a string key to locate the datavalue - the value to store
true if the cache did not previously contain the
key-value pair
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||