|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientBundleRequirements
Allows ResourceGenerators to indicate how their generated resources may be
affected by their execution environment. An instance of this type will be
provided to the ResourceGenerator via the ResourceGenerator.prepare(com.google.gwt.core.ext.TreeLogger, com.google.gwt.resources.ext.ResourceContext, com.google.gwt.resources.ext.ClientBundleRequirements, com.google.gwt.core.ext.typeinfo.JMethod)
method.
Method Summary | |
---|---|
void |
addConfigurationProperty(java.lang.String propertyName)
Indicates that the ResourcePrototype implementation generated by a ResourceGenerator is sensitive to the values of the specified configuration property. |
void |
addPermutationAxis(java.lang.String propertyName)
Indicates that the ResourcePrototype implementation generated by a ResourceGenerator is sensitive to the value of the specified deferred-binding property. |
void |
addResolvedResource(java.lang.String partialPath,
java.net.URL resolvedResourceUrl)
Indicates that the ResourcePrototype implementation generated by a ResourceGenerator is sensitive to a dependent resource. |
void |
addTypeHierarchy(JClassType type)
Indicates that the ResourcePrototype implementation generated by a ResourceGenerator is sensitive to structural changes to the given type, as well as any of it's super type hierarchy. |
Method Detail |
---|
void addConfigurationProperty(java.lang.String propertyName) throws BadPropertyValueException
propertyName
- the name of the configuration property
BadPropertyValueException
void addPermutationAxis(java.lang.String propertyName) throws BadPropertyValueException
user.agent
deferred-binding property, and would call this
method with the literal string user.agent
.
If a deferred-binding property does not exist, an attempt is made to check whether a configuration property by the same name exists.
propertyName
- the name of the deferred-binding property
BadPropertyValueException
- if propertyName
is neither a
valid deferred-binding property nor a valid configuration
property.void addResolvedResource(java.lang.String partialPath, java.net.URL resolvedResourceUrl)
The implementation for resolving a resource url from a partial path is
contained in ResourceGeneratorUtil
, and is based on an ordered set
of 'locator' implementations, which are tried in sequence. Example
'locator' implementations include looking up a resource file by name, which
usually amounts to a freshly generated temporary file (see
ResourceGeneratorUtil.addNamedFile(java.lang.String, java.io.File)
), or by using the partial path
as a classpath resource used by a class loader, which can be affected by
classpath shadowing.
The current resolution for a resource partial path can be checked via
ResourceGeneratorUtil.tryFindResource(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, com.google.gwt.resources.ext.ResourceContext, java.lang.String)
.
partialPath
- a partial path representing a dependent resource.resolvedResourceUrl
- a located resolved URL for a dependent resource.void addTypeHierarchy(JClassType type)
type
- a type
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |