org.apache.myfaces.extensions.validator.core.factory
Interface FacesMessageFactory

All Known Implementing Classes:
DefaultFacesMessageFactory, TrinidadFacesMessageFactory

public interface FacesMessageFactory

A factory which is able to create FacesMessages that also implement the LabeledMessage interface (or to convert a simple FacesMessage to a FacesMessage which is aware of a label.

Since:
1.x.2

Method Summary
 javax.faces.application.FacesMessage convert(javax.faces.application.FacesMessage facesMessage)
          Converts a given FacesMessage to a message which also implements the LabeledMessage interface.
 javax.faces.application.FacesMessage create(javax.faces.application.FacesMessage.Severity severity, String summary, String detail)
          Creates a FacesMessage which also implements LabeledMessage
 

Method Detail

convert

javax.faces.application.FacesMessage convert(javax.faces.application.FacesMessage facesMessage)
Converts a given FacesMessage to a message which also implements the LabeledMessage interface. If the provided instance implements already the correct interface, it is returned without change.

Parameters:
facesMessage - The facesMessage to convert
Returns:
A FacesMessage which also implements LabeledMessage.

create

javax.faces.application.FacesMessage create(javax.faces.application.FacesMessage.Severity severity,
                                            String summary,
                                            String detail)
Creates a FacesMessage which also implements LabeledMessage

Parameters:
severity - Severity for the message.
summary - summary text for the message.
detail - detail text for the message.
Returns:
FacesMessage which also implements LabeledMessage


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.