Package org.apache.myfaces.extensions.cdi.message.api

Examples of org.apache.myfaces.extensions.cdi.message.api.MessageResolver


    @RequestScoped
    @ClientQualifier
    public MessageContext createClientAwareContext(@Jsf MessageContext messageContext,
                                                   Client client)
    {
        MessageResolver clientAwareMessageResolver = createMessageResolverForClient(client.getId());

        return messageContext.config().use().messageResolver(clientAwareMessageResolver).create();
    }
View Full Code Here


        return messageContext.config().use().messageResolver(clientAwareMessageResolver).create();
    }

    private MessageResolver createMessageResolverForClient(final String currentClientId)
    {
        return new MessageResolver()
        {
            private static final long serialVersionUID = -4009930342736825281L;

            public String getMessage(MessageContext messageContext,
                                     String messageDescriptor,
View Full Code Here

    private String getMessageText(Message baseMessage)
    {
        String message = baseMessage.getDescriptor();

        MessageResolver messageResolver = this.messageContext.config().getMessageResolver();
        if (messageResolver != null)
        {
            message = resolveMessage(messageResolver, baseMessage);
        }
View Full Code Here

    private String getMessageText(Message baseMessage)
    {
        String message = baseMessage.getDescriptor();

        MessageResolver messageResolver = this.messageContext.config().getMessageResolver();
        if (messageResolver != null)
        {
            message = resolveMessage(messageResolver, baseMessage);
        }
View Full Code Here

    @RequestScoped
    @ClientQualifier
    public MessageContext createClientAwareContext(@Jsf MessageContext messageContext,
                                                   Client client)
    {
        MessageResolver clientAwareMessageResolver = createMessageResolverForClient(client.getId());

        return messageContext.config().use().messageResolver(clientAwareMessageResolver).create();
    }
View Full Code Here

        return messageContext.config().use().messageResolver(clientAwareMessageResolver).create();
    }

    private MessageResolver createMessageResolverForClient(final String currentClientId)
    {
        return new MessageResolver()
        {
            private static final long serialVersionUID = -4009930342736825281L;

            public String getMessage(MessageContext messageContext,
                                     String messageDescriptor,
View Full Code Here

    private String getMessageText(Message baseMessage)
    {
        String message = baseMessage.getDescriptor();

        MessageResolver messageResolver = this.messageContext.config().getMessageResolver();
        if (messageResolver != null)
        {
            message = resolveMessage(messageResolver, baseMessage);
        }
View Full Code Here

    @RequestScoped
    @ClientQualifier
    public MessageContext createClientAwareContext(@Jsf MessageContext messageContext,
                                                   Client client)
    {
        MessageResolver clientAwareMessageResolver = createMessageResolverForClient(client.getId());

        return messageContext.config().use().messageResolver(clientAwareMessageResolver).create();
    }
View Full Code Here

        return messageContext.config().use().messageResolver(clientAwareMessageResolver).create();
    }

    private MessageResolver createMessageResolverForClient(final String currentClientId)
    {
        return new MessageResolver()
        {
            private static final long serialVersionUID = -4009930342736825281L;

            public String getMessage(MessageContext messageContext,
                                     String messageDescriptor,
View Full Code Here

    private String getMessageText(Message baseMessage)
    {
        String message = baseMessage.getDescriptor();

        MessageResolver messageResolver = this.messageContext.config().getMessageResolver();
        if (messageResolver != null)
        {
            message = resolveMessage(messageResolver, baseMessage);
        }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.message.api.MessageResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.