< prev index next >
src/java.activation/share/classes/javax/activation/CommandInfo.java
Print this page
*** 83,96 ****
/**
* Return the instantiated JavaBean component.
* <p>
* Begin by instantiating the component with
! * <code>Beans.instantiate()</code>.
* <p>
! * If the bean implements the <code>javax.activation.CommandObject</code>
! * interface, call its <code>setCommandContext</code> method.
* <p>
* If the DataHandler parameter is null, then the bean is
* instantiated with no data. NOTE: this may be useful
* if for some reason the DataHandler that is passed in
* throws IOExceptions when this method attempts to
--- 83,96 ----
/**
* Return the instantiated JavaBean component.
* <p>
* Begin by instantiating the component with
! * {@code Beans.instantiate()}.
* <p>
! * If the bean implements the {@code javax.activation.CommandObject}
! * interface, call its {@code setCommandContext} method.
* <p>
* If the DataHandler parameter is null, then the bean is
* instantiated with no data. NOTE: this may be useful
* if for some reason the DataHandler that is passed in
* throws IOExceptions when this method attempts to
*** 100,110 ****
* <p>
* If the bean does NOT implement the CommandObject interface,
* this method will check if it implements the
* java.io.Externalizable interface. If it does, the bean's
* readExternal method will be called if an InputStream
! * can be acquired from the DataHandler.<p>
*
* @param dh The DataHandler that describes the data to be
* passed to the command.
* @param loader The ClassLoader to be used to instantiate the bean.
* @return The bean
--- 100,110 ----
* <p>
* If the bean does NOT implement the CommandObject interface,
* this method will check if it implements the
* java.io.Externalizable interface. If it does, the bean's
* readExternal method will be called if an InputStream
! * can be acquired from the DataHandler.
*
* @param dh The DataHandler that describes the data to be
* passed to the command.
* @param loader The ClassLoader to be used to instantiate the bean.
* @return The bean
< prev index next >