com.google.gwt.libideas.resources.rebind.context
Class InlineResourceBundleGenerator

java.lang.Object
  extended by com.google.gwt.core.ext.Generator
      extended by com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator
          extended by com.google.gwt.libideas.resources.rebind.context.InlineResourceBundleGenerator

public final class InlineResourceBundleGenerator
extends AbstractResourceBundleGenerator

This is a refinement that will use data urls for browsers that support them. Only files whose size are smaller than MAX_INLINE_SIZE will be inlined. Larger files will use the standard CacheBundle behavior.

See Also:
"RFC 2397"

Constructor Summary
InlineResourceBundleGenerator()
           
 
Method Summary
protected  ResourceContext createResourceContext(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType, com.google.gwt.user.rebind.SourceWriter sw)
          Create the ResourceContext object that will be used by ResourceGenerator subclasses.
protected  java.lang.String generateSimpleSourceName(java.lang.String sourceType)
          Given a user-defined type name, determine the type name for the generated class.
 
Methods inherited from class com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator
generate
 
Methods inherited from class com.google.gwt.core.ext.Generator
escape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineResourceBundleGenerator

public InlineResourceBundleGenerator()
Method Detail

createResourceContext

protected ResourceContext createResourceContext(com.google.gwt.core.ext.TreeLogger logger,
                                                com.google.gwt.core.ext.GeneratorContext context,
                                                com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType,
                                                com.google.gwt.user.rebind.SourceWriter sw)
Description copied from class: AbstractResourceBundleGenerator
Create the ResourceContext object that will be used by ResourceGenerator subclasses. This is the primary way to implement custom logic in the resource generation pass.

Specified by:
createResourceContext in class AbstractResourceBundleGenerator
Returns:
the ResourceContext to be used

generateSimpleSourceName

protected java.lang.String generateSimpleSourceName(java.lang.String sourceType)
Description copied from class: AbstractResourceBundleGenerator
Given a user-defined type name, determine the type name for the generated class.

Specified by:
generateSimpleSourceName in class AbstractResourceBundleGenerator