| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | DefaultFaceletCache.
ConcurrentCache implementation that does no caching (always creates new instances) |
| private static class | DefaultFaceletCache.
This class holds the Facelet instance and its original URL's last modified time. |
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentCache | |
| private final ConcurrentCache |
| Access | Constructor and Description |
|---|---|
| pack-priv | DefaultFaceletCache(final long
cache refresh period (in seconds). 0 means 'always refresh', negative value means 'never
refresh' refreshPeriod)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public DefaultFacelet | getFacelet(URL
URL for the Facelet being retrievedImplements abstract jakarta. Returns a cached Facelet instance. |
| public DefaultFacelet | getViewMetadataFacelet(URL
URL for the View Metadata Facelet being retrievedImplements abstract jakarta. Returns a cached View Metadata Facelet instance. |
| public boolean | isFaceletCached(URL
URL for the FaceletImplements abstract jakarta. Determines whether a cached Facelet instance exists for this URL. |
| public boolean | isViewMetadataFaceletCached(URL
URL for the View Metadata FaceletImplements abstract jakarta. Determines whether a cached View Metadata Facelet instance exists for this URL. |
| _faceletCache | back to summary |
|---|---|
| private final ConcurrentCache<URL, DefaultFaceletCache. | |
| _metadataFaceletCache | back to summary |
|---|---|
| private final ConcurrentCache<URL, DefaultFaceletCache. | |
| DefaultFaceletCache | back to summary |
|---|---|
| pack-priv DefaultFaceletCache(final long refreshPeriod) Constructor
| |
| _unwrapIOException | back to summary |
|---|---|
| private void _unwrapIOException(ExecutionException e) throws IOException | |
| getFacelet | back to summary |
|---|---|
| public DefaultFacelet getFacelet(URL url) throws IOException Implements abstract jakarta. Doc from jakarta.
Returns a cached Facelet instance. If no instance is available, it will be created using the Facelet
| |
| getViewMetadataFacelet | back to summary |
|---|---|
| public DefaultFacelet getViewMetadataFacelet(URL url) throws IOException Implements abstract jakarta. Doc from jakarta.
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 boolean isFaceletCached(URL url) Implements abstract jakarta. Doc from jakarta. Determines whether a cached Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise | |
| isViewMetadataFaceletCached | back to summary |
|---|---|
| public boolean isViewMetadataFaceletCached(URL url) Implements abstract jakarta. Doc from jakarta. Determines whether a cached View Metadata Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isExpired(URL
cache key url, DefaultFaceletCache.cached value recordImplements com. Checks whether a cached object expired |
| ExpiryChecker | back to summary |
|---|---|
| private ExpiryChecker() | |
| isExpired | back to summary |
|---|---|
| public boolean isExpired(URL url, DefaultFaceletCache. Implements com. Doc from com. Checks whether a cached object expired
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isExpired(URL
cache key key, DefaultFaceletCache.cached value valueImplements com. Checks whether a cached object expired |
| NeverExpired | back to summary |
|---|---|
| private NeverExpired() | |
| isExpired | back to summary |
|---|---|
| public boolean isExpired(URL key, DefaultFaceletCache. Implements com. Doc from com. Checks whether a cached object expired
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsKey(final URL
key to test key)Implements abstract com. Tests whether the cache contains a value for the specified key |
| public DefaultFaceletCache. | get(final URL
the key the value is associated with key)Implements abstract com. Retrieves a value for the specified key. |
| NoCache | back to summary |
|---|---|
| public NoCache(ConcurrentCache. | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final URL key) Implements abstract com. Doc from com. Tests whether the cache contains a value for the specified key | |
| get | back to summary |
|---|---|
| public DefaultFaceletCache. Implements abstract com. Doc from com. Retrieves a value for the specified key. If the value is not already present in the cache, a new instance will be
allocated using the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final DefaultFacelet | |
| private final long | |
| private final AtomicLong | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| pack-priv DefaultFacelet | |
| pack-priv long | |
| pack-priv long |
| _creationTime | back to summary |
|---|---|
| private final long _creationTime | |
| _facelet | back to summary |
|---|---|
| private final DefaultFacelet _facelet | |
| _lastModified | back to summary |
|---|---|
| private final long _lastModified | |
| _nextRefreshTime | back to summary |
|---|---|
| private final AtomicLong _nextRefreshTime | |
| _refreshInterval | back to summary |
|---|---|
| private final long _refreshInterval | |
| Record | back to summary |
|---|---|
| pack-priv Record(long creationTime, long lastModified, DefaultFacelet facelet, long refreshInterval) | |
| getAndUpdateNextRefreshTime | back to summary |
|---|---|
| pack-priv long getAndUpdateNextRefreshTime() | |
| getFacelet | back to summary |
|---|---|
| pack-priv DefaultFacelet getFacelet() | |
| getLastModified | back to summary |
|---|---|
| pack-priv long getLastModified() | |
| getNextRefreshTime | back to summary |
|---|---|
| pack-priv long getNextRefreshTime() | |