|
JSR-62 (Final) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.Beans
This class provides some general purpose beans control methods.
Constructor Summary | |
Beans()
|
Method Summary | |
static Object |
instantiate(ClassLoader cls,
String beanName)
Instantiate a JavaBean. |
static boolean |
isDesignTime()
Test if we are in design-mode. |
static boolean |
isGuiAvailable()
Determines whether beans can assume a GUI is available. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Beans()
Method Detail |
public static Object instantiate(ClassLoader cls, String beanName) throws IOException, ClassNotFoundException
Instantiate a JavaBean.
beanName
- the name of the bean within the class-loader.
For example "sun.beanbox.foobah"
ClassNotFoundException
- if the class of a serialized
object could not be found.
IOException
- if an I/O error occurs.public static boolean isDesignTime()
This method always returns false
in Personal
Profile.
public static boolean isGuiAvailable()
This method always returns true
in Personal
Profile.
Visibility
|
JSR-62 (Final) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |