wicket.markup.html
Class PackageResourceReference

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

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

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 wicket.ResourceReference
locale
 
Constructor Summary
PackageResourceReference(Application application, java.lang.Class scope, java.lang.String name)
          Deprecated. Constuctor to get a resource reference to a packaged resource.
PackageResourceReference(Application application, java.lang.Class scope, java.lang.String name, java.util.Locale locale, java.lang.String style)
          Deprecated. Constuctor to get a resource reference to a packaged resource.
PackageResourceReference(Application application, java.lang.String name)
          Deprecated. Constuctor to get a resource reference to a packaged resource.
PackageResourceReference(java.lang.Class scope, java.lang.String name)
          Deprecated. Constuctor to get a resource reference to a packaged resource that is already bindend to the current applicaiton.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Deprecated.  
 int hashCode()
          Deprecated.  
protected  Resource newResource()
          Deprecated. Factory method for lazy initialization of shared resources.
 
Methods inherited from class wicket.ResourceReference
bind, getLocale, getName, getResource, getScope, getSharedResourceKey, getStyle, invalidate, setLocale, setStyle, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PackageResourceReference

public PackageResourceReference(Application application,
                                java.lang.Class scope,
                                java.lang.String name,
                                java.util.Locale locale,
                                java.lang.String style)
Deprecated. 
Constuctor to get a resource reference to a packaged resource. It will bind itself directly to the given application object, so that the resource will be created if it did not exist and added to the application shared resources. Package resources should be added by a IInitializer implementation So that all needed packaged resources are there on startup of the application.

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:
java.lang.IllegalArgumentException - when no corresponding resource is found
See Also:
ResourceReference.ResourceReference(Class, String)

PackageResourceReference

public PackageResourceReference(Application application,
                                java.lang.Class scope,
                                java.lang.String name)
Deprecated. 
Constuctor to get a resource reference to a packaged resource. It will bind itself directly to the given application object, so that the resource will be created if it did not exist and added to the application shared resources. Package resources should be added by a IInitializer implementation So that all needed packaged resources are there on startup of the application.

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

PackageResourceReference

public PackageResourceReference(Application application,
                                java.lang.String name)
Deprecated. 
Constuctor to get a resource reference to a packaged resource. It will bind itself directly to the given application object, so that the resource will be created if it did not exist and added to the application shared resources. Package resources should be added by a IInitializer implementation So that all needed packaged resources are there on startup of the application. The scope of this constructor will be the wicket.Application.class itself. so the shared resources key wil be "wicket.Application/name"

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

PackageResourceReference

public PackageResourceReference(java.lang.Class scope,
                                java.lang.String name)
Deprecated. 
Constuctor to get a resource reference to a packaged resource that is already bindend to the current applicaiton. It will not bind a resource to the current application object, so the resource must be created by a IInitializer implementation. So that it is already binded at startup.

Parameters:
scope - The scope of the binding
name - The name of the resource
Throws:
java.lang.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(java.lang.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-2007 Wicket developers. All Rights Reserved.