Top Description Fields Constructors Methods
com.sun.faces.spi

pack-priv final Class ServiceFactoryUtils

extends Object
Class Inheritance
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader, java.lang.reflect.Constructor, .InvocationTargetException, java.net.URL, .URLConnection, java.nio.charset.StandardCharsets, java.util.ArrayList, .Arrays, .Enumeration, .List, java.util.logging.Level, .Logger, com.sun.faces.util.FacesLogger, .Util, jakarta.faces.FacesException

Base class for service discovery.

Field Summary

Modifier and TypeField and Description
private static final String[]
private static final Logger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static String

Returns:

The cleaned line, if it isn't empty after removing the comment and trimming, otherwise null.
cleanupServiceLine
(String
Line to clean.
line
)

Cleans line in service file by processing comments and trimming.

pack-priv static Object
getProviderFromEntry(String entry, Class<?>[] argumentTypes, Object[] arguments)

pack-priv static String[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_ARRAYback to summary
private static final String[] EMPTY_ARRAY
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

ServiceFactoryUtilsback to summary
pack-priv ServiceFactoryUtils()

Method Detail

cleanupServiceLineback to summary
private static String cleanupServiceLine(String line)

Cleans line in service file by processing comments and trimming.

Parameters
line:String

Line to clean.

Returns:String

The cleaned line, if it isn't empty after removing the comment and trimming, otherwise null.

getProviderFromEntryback to summary
pack-priv static Object getProviderFromEntry(String entry, Class<?>[] argumentTypes, Object[] arguments) throws FacesException
getServiceEntriesback to summary
pack-priv static String[] getServiceEntries(String key)