com.sun.rave.web.ui.component.util.descriptors
Class Resource

java.lang.Object
  extended by com.sun.rave.web.ui.component.util.descriptors.Resource
All Implemented Interfaces:
java.io.Serializable

public class Resource
extends java.lang.Object
implements java.io.Serializable

This class holds information that describes a Resource. It provides access to a ResourceFactory for obtaining the actual Resource object described by this descriptor. See the layout.dtd file for more information on how to define a Resource via XML. The LayoutDefinition will add all defined Resources to the Request scope for easy access (including via JSF EL).

See Also:
Serialized Form

Constructor Summary
Resource(java.lang.String id, java.lang.String extraInfo, java.lang.String factoryClass)
          Constructor
 
Method Summary
protected  ResourceFactory createFactory()
          This method creates a new factory.
 java.lang.String getExtraInfo()
          This holds "extraInfo" for the Resource, such as a ResourceBundle baseName.
 ResourceFactory getFactory()
          This method provides access to the ResourceFactory.
 java.lang.String getId()
          Accessor method for ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource(java.lang.String id,
                java.lang.String extraInfo,
                java.lang.String factoryClass)
Constructor

Method Detail

getId

public java.lang.String getId()
Accessor method for ID. This is the key the resource will be stored under in the Request scope.


getExtraInfo

public java.lang.String getExtraInfo()
This holds "extraInfo" for the Resource, such as a ResourceBundle baseName.


getFactory

public ResourceFactory getFactory()
This method provides access to the ResourceFactory.

Returns:
ResourceFactory

createFactory

protected ResourceFactory createFactory()
This method creates a new factory.

Returns:
ResourceFactory