Package com.liferay.faces.alloy.context.internal

Source Code of com.liferay.faces.alloy.context.internal.MessageContextFactoryAlloyImpl

/**
* Copyright (c) 2000-2014 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.faces.alloy.context.internal;

import javax.faces.FacesException;

import com.liferay.faces.util.context.MessageContext;
import com.liferay.faces.util.context.MessageContextFactory;


/**
* @author  Neil Griffin
*/
public class MessageContextFactoryAlloyImpl extends MessageContextFactory {

  // Private Data Members
  private MessageContext messageContext;
  private MessageContextFactory wrappedMessageContextFactory;

  public MessageContextFactoryAlloyImpl(MessageContextFactory messageContextFactory) {
    MessageContext wrappedMessageContext = messageContextFactory.getMessageContext();
    this.messageContext = new MessageContextAlloyImpl(wrappedMessageContext);
    this.wrappedMessageContextFactory = messageContextFactory;
  }

  @Override
  public MessageContext getMessageContext() throws FacesException {
    return messageContext;
  }

  @Override
  public MessageContextFactory getWrapped() {
    return wrappedMessageContextFactory;
  }
}
TOP

Related Classes of com.liferay.faces.alloy.context.internal.MessageContextFactoryAlloyImpl

TOP
Copyright © 2018 www.massapi.com. 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.