org.apache.myfaces.spi
Class ServiceProviderFinderFactory

java.lang.Object
  extended by org.apache.myfaces.spi.ServiceProviderFinderFactory

public class ServiceProviderFinderFactory
extends Object

Factory that provide a ServiceProviderFinder instance, that is used to locate classes through SPI interface.

Since:
2.0.3
Author:
Leonardo Uribe

Constructor Summary
ServiceProviderFinderFactory()
           
 
Method Summary
static ServiceProviderFinder getServiceProviderFinder(ExternalContext ectx)
           
static void setServiceProviderFinder(ExternalContext ectx, ServiceProviderFinder slp)
          Set a ServiceProviderFinder to the current application, to locate SPI service providers used by MyFaces.
static void setServiceProviderFinder(javax.servlet.ServletContext ctx, ServiceProviderFinder slp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceProviderFinderFactory

public ServiceProviderFinderFactory()
Method Detail

getServiceProviderFinder

public static ServiceProviderFinder getServiceProviderFinder(ExternalContext ectx)
Parameters:
ectx -
Returns:

setServiceProviderFinder

public static void setServiceProviderFinder(ExternalContext ectx,
                                            ServiceProviderFinder slp)
Set a ServiceProviderFinder to the current application, to locate SPI service providers used by MyFaces. This method should be called before the web application is initialized, specifically before AbstractFacesInitializer.initFaces(ServletContext) otherwise it will have no effect.

Parameters:
ectx -
slp -

setServiceProviderFinder

public static void setServiceProviderFinder(javax.servlet.ServletContext ctx,
                                            ServiceProviderFinder slp)


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.