public abstract class SkinProvider extends Object
SkinFactory
,
SkinMetadata
Modifier and Type | Field and Description |
---|---|
static String |
SKIN_PROVIDER_INSTANCE_KEY
Key for the SkinProvider stored in ExternalContext
|
Constructor and Description |
---|
SkinProvider() |
Modifier and Type | Method and Description |
---|---|
static SkinProvider |
getCurrentInstance(javax.faces.context.ExternalContext externalContext)
static factory method to get hold of the current SkinProvider instance.
|
abstract Skin |
getSkin(javax.faces.context.ExternalContext context,
SkinMetadata skinMetadata)
Returns the Skin for the given skin metadata
The returned skin is not cached by the framework and thus it is the responsibility of the
provider to return the same instance of the skin should it desire so.
|
Collection<SkinMetadata> |
getSkinMetadata(javax.faces.context.ExternalContext context)
A provider can optionally return information about some or all of the skins it provides.
|
public static final String SKIN_PROVIDER_INSTANCE_KEY
public abstract Skin getSkin(javax.faces.context.ExternalContext context, SkinMetadata skinMetadata)
context
- valid ExternalContextskinMetadata
- search criteria object containing the information of skin to be queried id,
family, renderKit, version are the information used from skin metadata to
perform search for the skin requested. Other fields do not participate in
the search.public Collection<SkinMetadata> getSkinMetadata(javax.faces.context.ExternalContext context)
context
- valid ExternalContextpublic static SkinProvider getCurrentInstance(javax.faces.context.ExternalContext externalContext)
externalContext
- valid ExternalContextCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.