com.liferay.faces.util.application
Class ComponentResourceFactory

java.lang.Object
  extended by com.liferay.faces.util.application.ComponentResourceFactory
All Implemented Interfaces:
javax.faces.FacesWrapper<ComponentResourceFactory>
Direct Known Subclasses:
ComponentResourceFactoryImpl

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

This abstract class provides a contract for defining a factory that knows how to create instances of type ComponentResource. It is inspired by the factory pattern found in the JSF API like FacesContextFactory and ExternalContextFactory. By implementing the FacesWrapper interface, the class provides implementations with the opportunity to wrap another factory (participate in a chain-of-responsibility pattern). If an implementation wraps a factory, then it should provide a one-arg constructor so that the wrappable factory can be passed at initialization time.

Author:
Neil Griffin

Constructor Summary
ComponentResourceFactory()
           
 
Method Summary
abstract  ComponentResource getComponentResource(javax.faces.component.UIComponent uiComponentResource)
          Gets an instance of ComponentResourceInfo according to the specified UIComponent resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.FacesWrapper
getWrapped
 

Constructor Detail

ComponentResourceFactory

public ComponentResourceFactory()
Method Detail

getComponentResource

public abstract ComponentResource getComponentResource(javax.faces.component.UIComponent uiComponentResource)
Gets an instance of ComponentResourceInfo according to the specified UIComponent resource.



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