/[classpath]/classpath/java/beans/Introspector.java
ViewVC logotype

Diff of /classpath/java/beans/Introspector.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17.2.3 by gnu_andrew, Tue Aug 2 20:12:16 2005 UTC revision 1.17.2.4 by gnu_andrew, Sun Oct 16 17:12:06 2005 UTC
# Line 182  public class Introspector { Line 182  public class Introspector {
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        
# Line 195  public class Introspector { Line 196  public class Introspector {
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;
# Line 236  public class Introspector { Line 237  public class Introspector {
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        {        {
# Line 255  public class Introspector { Line 256  public class Introspector {
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);

Legend:
Removed from v.1.17.2.3  
changed lines
  Added in v.1.17.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26