1 |
/* java.beans.Introspector |
/* java.beans.Introspector |
2 |
Copyright (C) 1998 Free Software Foundation, Inc. |
Copyright (C) 1998, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
209 |
} |
} |
210 |
} |
} |
211 |
|
|
212 |
|
/** |
213 |
|
* Flush all of the Introspector's internal caches. |
214 |
|
* |
215 |
|
* @since 1.2 |
216 |
|
*/ |
217 |
|
public static void flushCaches() |
218 |
|
{ |
219 |
|
beanInfoCache.clear(); |
220 |
|
} |
221 |
|
|
222 |
|
/** |
223 |
|
* Flush the Introspector's internal cached information for a given |
224 |
|
* class. |
225 |
|
* |
226 |
|
* @param clz the class to be flushed. |
227 |
|
* @throws NullPointerException if clz is null. |
228 |
|
* @since 1.2 |
229 |
|
*/ |
230 |
|
public static void flushFromCaches(Class clz) |
231 |
|
{ |
232 |
|
synchronized (clz) |
233 |
|
{ |
234 |
|
beanInfoCache.remove(clz); |
235 |
|
} |
236 |
|
} |
237 |
|
|
238 |
/** |
/** |
239 |
* Get the BeanInfo for class <CODE>beanClass</CODE>, |
* Get the BeanInfo for class <CODE>beanClass</CODE>, |
240 |
* first by looking for explicit information, next by |
* first by looking for explicit information, next by |