Lines Matching refs:list

34  * Collection of methods to get and set provider list. Also includes
35 * special code for the provider list during JAR verification.
49 // current system-wide provider list
54 // set providerList to empty list first in case initialization somehow
113 * Start JAR verification. This sets a special provider list for
121 // return the old thread-local provider list, usually null
129 // restore old thread-local provider list
134 * Return the current ProviderList. If the thread-local list is set,
135 * it is returned. Otherwise, the system wide list is returned.
138 ProviderList list = getThreadProviderList();
139 if (list == null) {
140 list = getSystemProviderList();
142 return list;
146 * Set the current ProviderList. Affects the thread-local list if set,
147 * otherwise the system wide list.
158 * Get the full provider list with invalid providers (those that
159 * could not be loaded) removed. This is the list we need to
163 ProviderList list;
165 list = getThreadProviderList();
166 if (list != null) {
167 ProviderList newList = list.removeInvalid();
168 if (newList != list) {
170 list = newList;
172 return list;
175 list = getSystemProviderList();
176 ProviderList newList = list.removeInvalid();
177 if (newList != list) {
179 list = newList;
181 return list;
188 private static void setSystemProviderList(ProviderList list) {
189 providerList = list;
201 // Change the thread local provider list. Use only if the current thread
202 // is already using a thread local list and you want to change it in place.
204 private static void changeThreadProviderList(ProviderList list) {
205 threadLists.set(list);
209 * Methods to manipulate the thread local provider list. It is for use by
214 * ProviderList list = ...;
215 * ProviderList oldList = Providers.beginThreadProviderList(list);
217 * // code that needs thread local provider list
224 public static synchronized ProviderList beginThreadProviderList(ProviderList list) {
226 ProviderList.debug.println("ThreadLocal providers: " + list);
230 threadLists.set(list);
234 public static synchronized void endThreadProviderList(ProviderList list) {
235 if (list == null) {
243 ("Restoring previous ThreadLocal providers: " + list);
245 threadLists.set(list);