All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.resources.ext.ClientBundleRequirements Maven / Gradle / Ivy

There is a newer version: 2.8.2
Show newest version
/*
 * Copyright 2008 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.google.gwt.resources.ext;

import com.google.gwt.core.ext.BadPropertyValueException;

/**
 * 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 {@link ResourceGenerator#prepare}
 * method.
 */
public interface ClientBundleRequirements {
  /**
   * Indicates that the ResourcePrototype implementation generated by a
   * ResourceGenerator is sensitive to the value of the specified
   * deferred-binding property. This method should be called when the behavior
   * of the ResourcePrototype must differ between permutations of the compiled
   * output. For example, some resource implementations may be sensitive to the
   * user.agent deferred-binding property, and would call this
   * method with the literal string user.agent.
   * 
   * @param propertyName the name of the deferred-binding property
   * @throws BadPropertyValueException if propertyName is not a
   *           valid deferred-binding property.
   */
  void addPermutationAxis(String propertyName) throws BadPropertyValueException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy