com.liferay.faces.util.product
Class ProductFactory

java.lang.Object
  extended by com.liferay.faces.util.product.ProductFactory
All Implemented Interfaces:
javax.faces.FacesWrapper<ProductFactory>

public abstract class ProductFactory
extends Object
implements javax.faces.FacesWrapper<ProductFactory>

Author:
Kyle Stiemann

Constructor Summary
ProductFactory()
           
 
Method Summary
static Product getProduct(Product.Name productName)
          Deprecated. Use getProductInstance(javax.faces.context.ExternalContext, com.liferay.faces.util.product.Product.Name) instead.
 Product getProductImplementation(Product.Name productName)
          Deprecated. Use getProductInfo(com.liferay.faces.util.product.Product.Name) instead.
abstract  Product getProductInfo(Product.Name productName)
          Returns the thread-safe singleton instance of Product associated with the specified Product#Name.
static Product getProductInstance(javax.faces.context.ExternalContext externalContext, Product.Name productName)
          Returns the thread-safe singleton instance of Product associated with the specified Product#Name from the ProductFactory found by the FactoryExtensionFinder.
abstract  ProductFactory getWrapped()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductFactory

public ProductFactory()
Method Detail

getProduct

@Deprecated
public static final Product getProduct(Product.Name productName)
Deprecated. Use getProductInstance(javax.faces.context.ExternalContext, com.liferay.faces.util.product.Product.Name) instead.

Returns the thread-safe singleton instance of Product associated with the specified Product#Name from the ProductFactory found by the FactoryExtensionFinder. The returned instance is not guaranteed to be javax.io.Serializable.

Parameters:
productName - The name of the product.

getProductInstance

public static Product getProductInstance(javax.faces.context.ExternalContext externalContext,
                                         Product.Name productName)
Returns the thread-safe singleton instance of Product associated with the specified Product#Name from the ProductFactory found by the FactoryExtensionFinder. The returned instance is not guaranteed to be javax.io.Serializable.

Parameters:
productName - The name of the product.

getProductInfo

public abstract Product getProductInfo(Product.Name productName)
Returns the thread-safe singleton instance of Product associated with the specified Product#Name. The returned instance is not guaranteed to be javax.io.Serializable.

Parameters:
productName - The name of the product.

getWrapped

public abstract ProductFactory getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<ProductFactory>

getProductImplementation

@Deprecated
public Product getProductImplementation(Product.Name productName)
Deprecated. Use getProductInfo(com.liferay.faces.util.product.Product.Name) instead.

Returns the thread-safe singleton instance of Product associated with the specified Product#Name. The returned instance is not guaranteed to be javax.io.Serializable.

Parameters:
productName -


Copyright © 2019 Liferay, Inc.. All rights reserved.