182 |
public static final int IGNORE_ALL_BEANINFO = 3; |
public static final int IGNORE_ALL_BEANINFO = 3; |
183 |
|
|
184 |
static String[] beanInfoSearchPath = {"gnu.java.beans.info"}; |
static String[] beanInfoSearchPath = {"gnu.java.beans.info"}; |
185 |
static Hashtable beanInfoCache = new Hashtable(); |
static Hashtable<Class<?>,BeanInfo> beanInfoCache = |
186 |
|
new Hashtable<Class<?>,BeanInfo>(); |
187 |
|
|
188 |
private Introspector() {} |
private Introspector() {} |
189 |
|
|
196 |
* @param beanClass the class to get BeanInfo about. |
* @param beanClass the class to get BeanInfo about. |
197 |
* @return the BeanInfo object representing the class. |
* @return the BeanInfo object representing the class. |
198 |
*/ |
*/ |
199 |
public static BeanInfo getBeanInfo(Class beanClass) |
public static BeanInfo getBeanInfo(Class<?> beanClass) |
200 |
throws IntrospectionException |
throws IntrospectionException |
201 |
{ |
{ |
202 |
BeanInfo cachedInfo; |
BeanInfo cachedInfo; |
203 |
synchronized(beanClass) |
synchronized(beanClass) |
204 |
{ |
{ |
205 |
cachedInfo = (BeanInfo)beanInfoCache.get(beanClass); |
cachedInfo = beanInfoCache.get(beanClass); |
206 |
if(cachedInfo != null) |
if(cachedInfo != null) |
207 |
{ |
{ |
208 |
return cachedInfo; |
return cachedInfo; |
237 |
* @throws NullPointerException if clz is null. |
* @throws NullPointerException if clz is null. |
238 |
* @since 1.2 |
* @since 1.2 |
239 |
*/ |
*/ |
240 |
public static void flushFromCaches(Class clz) |
public static void flushFromCaches(Class<?> clz) |
241 |
{ |
{ |
242 |
synchronized (clz) |
synchronized (clz) |
243 |
{ |
{ |
256 |
* @param stopClass the class to stop at. |
* @param stopClass the class to stop at. |
257 |
* @return the BeanInfo object representing the class. |
* @return the BeanInfo object representing the class. |
258 |
*/ |
*/ |
259 |
public static BeanInfo getBeanInfo(Class beanClass, Class stopClass) |
public static BeanInfo getBeanInfo(Class<?> beanClass, Class<?> stopClass) |
260 |
throws IntrospectionException |
throws IntrospectionException |
261 |
{ |
{ |
262 |
ExplicitInfo explicit = new ExplicitInfo(beanClass, stopClass); |
ExplicitInfo explicit = new ExplicitInfo(beanClass, stopClass); |