This API defines the facility by which the Facelets
jakarta. creates and caches instances of Facelets.
The cache handles two different kinds of Facelets: View Facelets and View Metadata Facelets. The former is the usual
Facelet that provides for the construction of a UIComponent tree. This kind of Facelet is accessed via
the getFacelet and isFaceletCached methods. The latter is a special kind of Facelet that
corresponds to jakarta.. This kind of Facelet is accessed
via the getViewMetadataFacelet and isViewMetadataFaceletCached methods.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | FaceletCache.
Factory interface for creating Facelet or View Metadata Facelet instances. |
| Modifier and Type | Field and Description |
|---|---|
| private FaceletCache. | |
| private FaceletCache. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract V | Returns: a cached or newFaceletURL for the Facelet being retrievedReturns a cached Facelet instance. |
| protected FaceletCache. | Returns: theMemberFactory passed to setCacheFactories for the purpose of creating Facelet instance.
Returns the |
| protected FaceletCache. | Returns: theMemberFactory passed to setCacheFactories for the purpose of creating View Metadata
Facelet instance.
Returns the |
| public abstract V | Returns: a cached or new View MetadataFacelet instanceURL for the View Metadata Facelet being retrievedReturns a cached View Metadata Facelet instance. |
| public abstract boolean | Returns: true if a cached instance exists, false otherwiseURL for the FaceletDetermines whether a cached Facelet instance exists for this URL. |
| public abstract boolean | Returns: true if a cached instance exists, false otherwiseURL for the View Metadata FaceletDetermines whether a cached View Metadata Facelet instance exists for this URL. |
| public void | setCacheFactories(FaceletCache.
the faceletFactory,MemberFactory instance that will be used to create instances of Facelets.the viewMetadataFaceletFactoryMemberFactory instance that will be used to create instances of
metadata Facelets.
This must be called by the runtime at startup time, before any requests are serviced, and allows for the
|
| memberFactory | back to summary |
|---|---|
| private FaceletCache. | |
| viewMetadataMemberFactory | back to summary |
|---|---|
| private FaceletCache. | |
| FaceletCache | back to summary |
|---|---|
| public FaceletCache() | |
| getFacelet | back to summary |
|---|---|
| public abstract V getFacelet(URL url) throws IOException
Returns a cached Facelet instance. If no instance is available, it will be created using the Facelet
| |
| getMemberFactory | back to summary |
|---|---|
| protected FaceletCache.
Returns the
| |
| getMetadataMemberFactory | back to summary |
|---|---|
| protected FaceletCache.
Returns the
| |
| getViewMetadataFacelet | back to summary |
|---|---|
| public abstract V getViewMetadataFacelet(URL url) throws IOException
Returns a cached View Metadata Facelet instance. If no instance is available, it will be created using the View
Metadata Facelet
| |
| isFaceletCached | back to summary |
|---|---|
| public abstract boolean isFaceletCached(URL url) Determines whether a cached Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise
| |
| isViewMetadataFaceletCached | back to summary |
|---|---|
| public abstract boolean isViewMetadataFaceletCached(URL url) Determines whether a cached View Metadata Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise
| |
| setCacheFactories | back to summary |
|---|---|
| public void setCacheFactories(FaceletCache.
This must be called by the runtime at startup time, before any requests are serviced, and allows for the
| |
Factory interface for creating Facelet or View Metadata Facelet instances.
| Modifier and Type | Method and Description |
|---|---|
| public V | Returns: the newly createdFacelet or View Metadata Faceletthe key)URL that will be used as the key for the instance being created.Create a Facelet or View Metadata Facelet (depending on the type of factory this is) for the argument URL. |
| newInstance | back to summary |
|---|---|
| public V newInstance(final URL key) throws IOException Create a Facelet or View Metadata Facelet (depending on the type of factory this is) for the argument URL.
| |