Top Inners Fields Constructors Methods
com.sun.faces.facelets

public abstract Class FaceletCache<V>

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.io.IOException, java.net.URL

Deprecated

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
FaceletCache.InstanceFactory<V>

Deprecated
Factory interface for creating Facelets.

Field Summary

Modifier and TypeField and Description
private FaceletCache.InstanceFactory<V>
_faceletFactory

Deprecated as a consequence of FaceletCache.InstanceFactory being deprecated.
private FaceletCache.InstanceFactory<V>
_metafaceletFactory

Deprecated as a consequence of FaceletCache.InstanceFactory being deprecated.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract V

Returns:

cached Facelet instance, If no instance is available, it will be created using the Facelet InstanceFactory and stored in the cache
getFacelet
(URL
URL for the Facelet being retrieved
url
)

Retrieves a cached Facelet

protected final FaceletCache.InstanceFactory<V>

Returns:

factory for creating Facelets
getFaceletInstanceFactory
()

Deprecated as a consequence of FaceletCache.InstanceFactory being deprecated.
Retrieves InstanceFactory for creating Facelets
public abstract V

Returns:

cached Metadata Facelet instance, If no instance is available, it will be created using the Metadata Facelet InstanceFactory and stored in the cache
getMetadataFacelet
(URL
URL for the Metadata Facelet being retrieved
url
)

Retrieves a cached Metadata Facelet

protected final FaceletCache.InstanceFactory<V>

Returns:

factory for creating MetadataFacelets
getMetadataFaceletInstanceFactory
()

Deprecated as a consequence of FaceletCache.InstanceFactory being deprecated.
Retrieves InstanceFactory for creating Metadata Facelets
public final void
init(FaceletCache.InstanceFactory<V>
InstanceFactory for creating Facelet instances
faceletFactory
,
FaceletCache.InstanceFactory<V>
InstanceFactory for creating Metadata Facelet instances
metafaceletFactory
)

Deprecated as a consequence of FaceletCache.InstanceFactory being deprecated.
Initializes this cache instance.
public abstract boolean

Returns:

true if a cached instance exists, false otherwise
isFaceletCached
(URL
URL for the Facelet
url
)

Determines whether a cached Facelet instance exists for this URL

public abstract boolean

Returns:

true if a cached instance exists, false otherwise
isMetadataFaceletCached
(URL
URL for the Metadata Facelet
url
)

Determines whether a cached Metadata Facelet instance exists for this URL

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_faceletFactoryback to summary
private FaceletCache.InstanceFactory<V> _faceletFactory

Deprecated

as a consequence of FaceletCache.InstanceFactory being deprecated. See corresponding docs for further information.

_metafaceletFactoryback to summary
private FaceletCache.InstanceFactory<V> _metafaceletFactory

Deprecated

as a consequence of FaceletCache.InstanceFactory being deprecated. See corresponding docs for further information.

Constructor Detail

FaceletCacheback to summary
public FaceletCache()

Method Detail

getFaceletback to summary
public abstract V getFacelet(URL url) throws IOException

Retrieves a cached Facelet

Parameters
url:URL

URL for the Facelet being retrieved

Returns:V

cached Facelet instance, If no instance is available, it will be created using the Facelet InstanceFactory and stored in the cache

getFaceletInstanceFactoryback to summary
protected final FaceletCache.InstanceFactory<V> getFaceletInstanceFactory()

Deprecated

as a consequence of FaceletCache.InstanceFactory being deprecated. See corresponding docs for further information.

Retrieves InstanceFactory for creating Facelets

Returns:FaceletCache.InstanceFactory<V>

factory for creating Facelets

getMetadataFaceletback to summary
public abstract V getMetadataFacelet(URL url) throws IOException

Retrieves a cached Metadata Facelet

Parameters
url:URL

URL for the Metadata Facelet being retrieved

Returns:V

cached Metadata Facelet instance, If no instance is available, it will be created using the Metadata Facelet InstanceFactory and stored in the cache

getMetadataFaceletInstanceFactoryback to summary
protected final FaceletCache.InstanceFactory<V> getMetadataFaceletInstanceFactory()

Deprecated

as a consequence of FaceletCache.InstanceFactory being deprecated. See corresponding docs for further information.

Retrieves InstanceFactory for creating Metadata Facelets

Returns:FaceletCache.InstanceFactory<V>

factory for creating MetadataFacelets

initback to summary
public final void init(FaceletCache.InstanceFactory<V> faceletFactory, FaceletCache.InstanceFactory<V> metafaceletFactory)

Deprecated

as a consequence of FaceletCache.InstanceFactory being deprecated. See corresponding docs for further information.

Initializes this cache instance.

Parameters
faceletFactory:FaceletCache.InstanceFactory<V>

InstanceFactory for creating Facelet instances

metafaceletFactory:FaceletCache.InstanceFactory<V>

InstanceFactory for creating Metadata Facelet instances

isFaceletCachedback to summary
public abstract boolean isFaceletCached(URL url)

Determines whether a cached Facelet instance exists for this URL

Parameters
url:URL

URL for the Facelet

Returns:boolean

true if a cached instance exists, false otherwise

isMetadataFaceletCachedback to summary
public abstract boolean isMetadataFaceletCached(URL url)

Determines whether a cached Metadata Facelet instance exists for this URL

Parameters
url:URL

URL for the Metadata Facelet

Returns:boolean

true if a cached instance exists, false otherwise

com.sun.faces.facelets back to summary

public Interface FaceletCache.InstanceFactory<V>

Annotations
@Deprecated

Deprecated

Factory interface for creating Facelets.

Method Summary

Modifier and TypeMethod and Description
public V
newInstance(final URL key)

Method Detail

newInstanceback to summary
public V newInstance(final URL key) throws IOException