jaxws/src/java.activation/share/classes/javax/activation/CommandInfo.java
changeset 30006 34db9a7db620
parent 25871 b80b84e87032
child 42124 640a383428fb
equal deleted inserted replaced
30005:b2f720a258c4 30006:34db9a7db620
    83 
    83 
    84     /**
    84     /**
    85      * Return the instantiated JavaBean component.
    85      * Return the instantiated JavaBean component.
    86      * <p>
    86      * <p>
    87      * Begin by instantiating the component with
    87      * Begin by instantiating the component with
    88      * <code>Beans.instantiate()</code>.
    88      * {@code Beans.instantiate()}.
    89      * <p>
    89      * <p>
    90      * If the bean implements the <code>javax.activation.CommandObject</code>
    90      * If the bean implements the {@code javax.activation.CommandObject}
    91      * interface, call its <code>setCommandContext</code> method.
    91      * interface, call its {@code setCommandContext} method.
    92      * <p>
    92      * <p>
    93      * If the DataHandler parameter is null, then the bean is
    93      * If the DataHandler parameter is null, then the bean is
    94      * instantiated with no data. NOTE: this may be useful
    94      * instantiated with no data. NOTE: this may be useful
    95      * if for some reason the DataHandler that is passed in
    95      * if for some reason the DataHandler that is passed in
    96      * throws IOExceptions when this method attempts to
    96      * throws IOExceptions when this method attempts to
   100      * <p>
   100      * <p>
   101      * If the bean does NOT implement the CommandObject interface,
   101      * If the bean does NOT implement the CommandObject interface,
   102      * this method will check if it implements the
   102      * this method will check if it implements the
   103      * java.io.Externalizable interface. If it does, the bean's
   103      * java.io.Externalizable interface. If it does, the bean's
   104      * readExternal method will be called if an InputStream
   104      * readExternal method will be called if an InputStream
   105      * can be acquired from the DataHandler.<p>
   105      * can be acquired from the DataHandler.
   106      *
   106      *
   107      * @param dh        The DataHandler that describes the data to be
   107      * @param dh        The DataHandler that describes the data to be
   108      *                  passed to the command.
   108      *                  passed to the command.
   109      * @param loader    The ClassLoader to be used to instantiate the bean.
   109      * @param loader    The ClassLoader to be used to instantiate the bean.
   110      * @return The bean
   110      * @return The bean