|
|||||||||
| Home >> All >> com >> sun >> facelets >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sun.facelets.impl
Class DefaultFacelet

java.lang.Objectcom.sun.facelets.Facelet
com.sun.facelets.impl.DefaultFacelet
- final class DefaultFacelet
- extends com.sun.facelets.Facelet
Default Facelet implementation.
- Version:
- $Id: DefaultFacelet.java,v 1.9 2006/04/03 05:10:38 jhook Exp $
| Nested Class Summary | |
private static class |
DefaultFacelet.ApplyToken
|
| Field Summary | |
private java.lang.String |
alias
|
private static java.lang.String |
APPLIED_KEY
|
private long |
createTime
|
private ExpressionFactory |
elFactory
|
private DefaultFaceletFactory |
factory
|
private java.util.logging.Logger |
log
|
private long |
refreshPeriod
|
private java.util.Map |
relativePaths
|
private com.sun.facelets.FaceletHandler |
root
|
private java.net.URL |
src
|
| Constructor Summary | |
DefaultFacelet(DefaultFaceletFactory factory,
ExpressionFactory el,
java.net.URL src,
java.lang.String alias,
com.sun.facelets.FaceletHandler root)
|
|
| Method Summary | |
void |
apply(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent parent)
The passed UIComponent parent will be populated/restored in accordance with the JSF 1.2 specification. |
java.lang.String |
getAlias()
Return the alias name for error messages and logging |
long |
getCreateTime()
The time when this Facelet was created, NOT the URL source code |
ExpressionFactory |
getExpressionFactory()
Return this Facelet's ExpressionFactory instance |
private java.net.URL |
getRelativePath(java.lang.String path)
Delegates resolution to DefaultFaceletFactory reference. |
java.net.URL |
getSource()
The URL this Facelet was created from. |
private void |
include(DefaultFaceletContext ctx,
javax.faces.component.UIComponent parent)
Given the passed FaceletContext, apply our child FaceletHandlers to the passed parent |
void |
include(DefaultFaceletContext ctx,
javax.faces.component.UIComponent parent,
java.lang.String path)
Used for delegation by the DefaultFaceletContext. |
void |
include(DefaultFaceletContext ctx,
javax.faces.component.UIComponent parent,
java.net.URL url)
Grabs a DefaultFacelet from referenced DefaultFaceletFacotry |
private void |
markApplied(javax.faces.component.UIComponent parent)
|
private void |
refresh(javax.faces.component.UIComponent c)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
log
private final java.util.logging.Logger log
APPLIED_KEY
private static final java.lang.String APPLIED_KEY
- See Also:
- Constant Field Values
alias
private final java.lang.String alias
elFactory
private final ExpressionFactory elFactory
factory
private final DefaultFaceletFactory factory
createTime
private final long createTime
refreshPeriod
private final long refreshPeriod
relativePaths
private final java.util.Map relativePaths
root
private final com.sun.facelets.FaceletHandler root
src
private final java.net.URL src
| Constructor Detail |
DefaultFacelet
public DefaultFacelet(DefaultFaceletFactory factory, ExpressionFactory el, java.net.URL src, java.lang.String alias, com.sun.facelets.FaceletHandler root)
| Method Detail |
apply
public void apply(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent parent) throws java.io.IOException, javax.faces.FacesException, com.sun.facelets.FaceletException, ELException
- Description copied from class:
com.sun.facelets.Facelet - The passed UIComponent parent will be populated/restored in accordance
with the JSF 1.2 specification.
refresh
private final void refresh(javax.faces.component.UIComponent c)
markApplied
private final void markApplied(javax.faces.component.UIComponent parent)
getAlias
public java.lang.String getAlias()
- Return the alias name for error messages and logging
getExpressionFactory
public ExpressionFactory getExpressionFactory()
- Return this Facelet's ExpressionFactory instance
getCreateTime
public long getCreateTime()
- The time when this Facelet was created, NOT the URL source code
getRelativePath
private java.net.URL getRelativePath(java.lang.String path) throws java.io.IOException
- Delegates resolution to DefaultFaceletFactory reference. Also, caches
URLs for relative paths.
getSource
public java.net.URL getSource()
- The URL this Facelet was created from.
include
private void include(DefaultFaceletContext ctx, javax.faces.component.UIComponent parent) throws java.io.IOException, javax.faces.FacesException, com.sun.facelets.FaceletException, ELException
- Given the passed FaceletContext, apply our child FaceletHandlers to the
passed parent
include
public void include(DefaultFaceletContext ctx, javax.faces.component.UIComponent parent, java.lang.String path) throws java.io.IOException, javax.faces.FacesException, com.sun.facelets.FaceletException, ELException
- Used for delegation by the DefaultFaceletContext. First pulls the URL
from getRelativePath(String) 55 , then
calls
include(FaceletContext, UIComponent, URL).
include
public void include(DefaultFaceletContext ctx, javax.faces.component.UIComponent parent, java.net.URL url) throws java.io.IOException, javax.faces.FacesException, com.sun.facelets.FaceletException, ELException
- Grabs a DefaultFacelet from referenced DefaultFaceletFacotry
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> sun >> facelets >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC