sun.beanbox
Class AppletClassGenerator

java.lang.Object
  |
  +--sun.beanbox.AppletClassGenerator

public class AppletClassGenerator
extends java.lang.Object

Generate a AppletClass for an Applet.


Constructor Summary
AppletClassGenerator(BeanBox box)
          A generator for AppletClasses.
 
Method Summary
protected  boolean beanHasHiddenState(java.lang.Object bean)
          Returns true if bean has hidden state.
protected  void findBeansWithHiddenState()
          Initializes a private collection of beans that contain hidden-state, if any.
 boolean generateClass(java.lang.String appletName, java.io.File dir, java.lang.String[] jars)
          Generate a AppletClass for the given BeanBox; Includes compiling it TBD; classes should not be in the default package we should pass around the package name.
protected  boolean shouldSerializeHiddenStateBeans()
          Returns true if beans containing hidden-state are nested in this beanbox.
static java.lang.String uniqueName(java.lang.Object bean)
          manage unique names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletClassGenerator

public AppletClassGenerator(BeanBox box)
A generator for AppletClasses. Box is the beanbox Name is the AppletClass name Dir is the directory where to place the generated .java and .class files
Method Detail

generateClass

public boolean generateClass(java.lang.String appletName,
                             java.io.File dir,
                             java.lang.String[] jars)
Generate a AppletClass for the given BeanBox; Includes compiling it TBD; classes should not be in the default package we should pass around the package name.

uniqueName

public static java.lang.String uniqueName(java.lang.Object bean)
manage unique names

beanHasHiddenState

protected boolean beanHasHiddenState(java.lang.Object bean)
Returns true if bean has hidden state.

shouldSerializeHiddenStateBeans

protected boolean shouldSerializeHiddenStateBeans()
Returns true if beans containing hidden-state are nested in this beanbox.

findBeansWithHiddenState

protected void findBeansWithHiddenState()
Initializes a private collection of beans that contain hidden-state, if any.