Package org.apache.wicket.request.resource.ResourceReference

Examples of org.apache.wicket.request.resource.ResourceReference.Key


  }

  public IResourceStream locate(Class<?> scope, String path, String style, String variation,
    Locale locale, String extension, boolean strict)
  {
    Key key = new Key(scope.getName(), path, locale, style, variation);
    IResourceStreamReference resourceStreamReference = cache.get(key);

    final IResourceStream result;
    if (resourceStreamReference == null)
    {
View Full Code Here


  {
    Args.notNull(reference, "reference");

    if (reference.canBeRegistered())
    {
      Key key = reference.getKey();
      map.putIfAbsent(key, reference);
      return key;
    }

    log.warn("{} cannot be added to the registry.", reference.getClass().getName());
View Full Code Here

   */
  public final ResourceReference getResourceReference(final Class<?> scope, final String name,
    final Locale locale, final String style, final String variation, final boolean strict,
    final boolean createIfNotFound)
  {
    return getResourceReference(new Key(scope.getName(), name, locale, style, variation),
      strict, createIfNotFound);
  }
View Full Code Here

   */
  private final ResourceReference _getResourceReference(final String scope, final String name,
    final Locale locale, final String style, final String variation, final boolean strict)
  {
    // Create a registry key containing all of the relevant attributes
    Key key = new Key(scope, name, locale, style, variation);

    // Get resource reference matching exactly the attrs provided
    ResourceReference res = map.get(key);
    if ((res != null) || strict)
    {
View Full Code Here

    if (autoAddedQueue != null)
    {
      while (autoAddedQueue.size() > maxSize)
      {
        // remove entry from auto-added list
        Key first = autoAddedQueue.remove();

        // remove entry from registry
        map.remove(first);
      }
    }
View Full Code Here

  {
    Args.notNull(reference, "reference");

    if (reference.canBeRegistered())
    {
      Key key = reference.getKey();
      map.putIfAbsent(key, reference);
      return key;
    }

    log.warn("{} cannot be added to the registry.", reference.getClass().getName());
View Full Code Here

   */
  public final ResourceReference getResourceReference(final Class<?> scope, final String name,
    final Locale locale, final String style, final String variation, final boolean strict,
    final boolean createIfNotFound)
  {
    return getResourceReference(new Key(scope.getName(), name, locale, style, variation),
      strict, createIfNotFound);
  }
View Full Code Here

   */
  private final ResourceReference _getResourceReference(final String scope, final String name,
    final Locale locale, final String style, final String variation, final boolean strict)
  {
    // Create a registry key containing all of the relevant attributes
    Key key = new Key(scope, name, locale, style, variation);

    // Get resource reference matching exactly the attrs provided
    ResourceReference res = map.get(key);
    if ((res != null) || strict)
    {
View Full Code Here

    if (autoAddedQueue != null)
    {
      while (autoAddedQueue.size() > maxSize)
      {
        // remove entry from auto-added list
        Key first = autoAddedQueue.remove();

        // remove entry from registry
        map.remove(first);
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.resource.ResourceReference.Key

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.