org.apache.wicket.markup.html
Class PackageResourceReference

java.lang.Object
  extended by org.apache.wicket.ResourceReference
      extended by org.apache.wicket.markup.html.PackageResourceReference
All Implemented Interfaces:
Serializable, IClusterable
Direct Known Subclasses:
CompressedPackageResourceReference

Deprecated. Use ResourceReference instead. This class will be removed in Wicket 2.0

@Deprecated
public class PackageResourceReference
extends ResourceReference

A convenience class for creating resource references to static resources.

Author:
Jonathan Locke, Eelco Hillenius
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.ResourceReference
locale
 
Constructor Summary
PackageResourceReference(Application application, Class scope, String name)
          Deprecated. Constructor to get a resource reference to a packaged resource.
PackageResourceReference(Application application, Class scope, String name, Locale locale, String style)
          Deprecated. Constructor to get a resource reference to a packaged resource.
PackageResourceReference(Application application, String name)
          Deprecated. Constructor to get a resource reference to a packaged resource.
PackageResourceReference(Class scope, String name)
          Deprecated. Constructor to get a resource reference to a packaged resource that is already bound to the current application.
 
Method Summary
 boolean equals(Object obj)
          Deprecated.  
 int hashCode()
          Deprecated.  
protected  Resource newResource()
          Deprecated. Factory method for lazy initialization of shared resources.
 
Methods inherited from class org.apache.wicket.ResourceReference
bind, getLocale, getName, getResource, getScope, getSharedResourceKey, getStyle, invalidate, isStateless, lastModifiedTime, setLocale, setStateless, setStyle, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PackageResourceReference

public PackageResourceReference(Application application,
                                Class scope,
                                String name,
                                Locale locale,
                                String style)
Deprecated. 
Constructor to get a resource reference to a packaged resource.

Parameters:
application - The application to bind to
scope - The scope of the binding
name - The name of the resource
locale - The Locale from which the search for the PackageResource must start
style - The Style of the PackageResource
Throws:
IllegalArgumentException - when no corresponding resource is found
See Also:
ResourceReference.ResourceReference(Class, String)

PackageResourceReference

public PackageResourceReference(Application application,
                                Class scope,
                                String name)
Deprecated. 
Constructor to get a resource reference to a packaged resource.

Parameters:
application - The application to bind to
scope - The scope of the binding
name - The name of the resource
Throws:
IllegalArgumentException - when no corresponding resource is found
See Also:
ResourceReference.ResourceReference(Class, String)

PackageResourceReference

public PackageResourceReference(Application application,
                                String name)
Deprecated. 
Constructor to get a resource reference to a packaged resource. The scope of this constructor will be the org.apache.wicket.Application.class itself. so the shared resources key will be "org.apache.wicket.Application/name"

Parameters:
application - The application to bind to
name - The name of the resource
Throws:
IllegalArgumentException - when no corresponding resource is found
See Also:
ResourceReference.ResourceReference(Class, String)

PackageResourceReference

public PackageResourceReference(Class scope,
                                String name)
Deprecated. 
Constructor to get a resource reference to a packaged resource that is already bound to the current application.

Parameters:
scope - The scope of the binding
name - The name of the resource
Throws:
IllegalArgumentException - when no corresponding resource is found
See Also:
ResourceReference.ResourceReference(Class, String)
Method Detail

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class ResourceReference
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class ResourceReference
See Also:
Object.equals(java.lang.Object)

newResource

protected Resource newResource()
Deprecated. 
Description copied from class: ResourceReference
Factory method for lazy initialization of shared resources.

Overrides:
newResource in class ResourceReference
Returns:
The resource
See Also:
ResourceReference.newResource()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.