Name

Class java.beans.Beans

Description

This class provides some general methods for instantiating a Bean, and for setting and getting the availability of the graphical user interface. It also provides methods for establishing the design-time state of the environment.

Class Definition

public class Beans 
{
   // methods
   public static Object getInstanceOf(Object bean, Class targetType);
   public static Object instantiate(ClassLoader cls, String beanName) 
         throws java.io.IOException, ClassNotFoundException;
   public static boolean isDesignTime();
   public static boolean isGuiAvailable();
   public static boolean isInstanceOf(Object bean, Class targetType);
   public static void setDesignTime(boolean isDesignTime)
         throws SecurityException;
   public static void setGuiAvailable(boolean isGuiAvailable)
         throws SecurityException;
}

Get Developing Java Beans now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.