com.liferay.faces.util.client
Class BrowserSnifferFactory

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

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

Author:
Neil Griffin

Constructor Summary
BrowserSnifferFactory()
           
 
Method Summary
abstract  BrowserSniffer getBrowserSniffer(javax.faces.context.ExternalContext externalContext)
          Returns a new instance of BrowserSniffer.
static BrowserSniffer getBrowserSnifferInstance()
          Deprecated. Call getBrowserSnifferInstance(ExternalContext) instead.

Returns a new instance of BrowserSniffer from the BrowserSnifferFactory found by the FactoryExtensionFinder. The returned instance is designed to be used during execution of a request thread, so it is not guaranteed to be Serializable.

static BrowserSniffer getBrowserSnifferInstance(javax.faces.context.ExternalContext externalContext)
          Returns a new instance of BrowserSniffer from the BrowserSnifferFactory found by the FactoryExtensionFinder.
abstract  BrowserSnifferFactory getWrapped()
          Returns the wrapped factory instance if this factory decorates another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserSnifferFactory

public BrowserSnifferFactory()
Method Detail

getBrowserSnifferInstance

@Deprecated
public static BrowserSniffer getBrowserSnifferInstance()
Deprecated. Call getBrowserSnifferInstance(ExternalContext) instead.

Returns a new instance of BrowserSniffer from the BrowserSnifferFactory found by the FactoryExtensionFinder. The returned instance is designed to be used during execution of a request thread, so it is not guaranteed to be Serializable.


getBrowserSnifferInstance

public static BrowserSniffer getBrowserSnifferInstance(javax.faces.context.ExternalContext externalContext)
Returns a new instance of BrowserSniffer from the BrowserSnifferFactory found by the FactoryExtensionFinder. The returned instance is designed to be used during execution of a request thread, so it is not guaranteed to be Serializable.

Parameters:
externalContext - The external context associated with the current faces context. It is needed in order for the FactoryExtensionFinder to be able to find the factory.
Since:
3.1, 2.1, 1.1

getBrowserSniffer

public abstract BrowserSniffer getBrowserSniffer(javax.faces.context.ExternalContext externalContext)
Returns a new instance of BrowserSniffer. The returned instance is designed to be used during execution of a request thread, so it is not guaranteed to be Serializable.


getWrapped

public abstract BrowserSnifferFactory getWrapped()
Returns the wrapped factory instance if this factory decorates another. Otherwise, this method returns null.

Specified by:
getWrapped in interface javax.faces.FacesWrapper<BrowserSnifferFactory>


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