component.java
来自「EJB_原代码多例-好好东西啊」· Java 代码 · 共 37 行
JAVA
37 行
package com.wiley.compBooks.roman.session.fazuul;
import javax.ejb.*;
import java.rmi.RemoteException;
/**
* This is ComponentBean's remote interface. It duplicates each of
* ComponentBean's business methods.
*
* This interface is what clients operate on when they interact with
* beans. The EJB Container vendor will implement this interface; the
* implemented object is called the EJB Object, which delegates
* invocations to the actual bean.
*/
public interface Component extends EJBObject {
/**
* Attaches this component to another component. If attach is successful,
* the Bean will call remove() on the two EJB Objects, and generate a new,
* combined Component.
*
* @return newly formed Component if successful
* @exception ComponentException thrown if two Components can't fit together
*/
public Component attachTo(Component other) throws RemoteException, ComponentException;
/**
* Returns the short name of this component
*/
public String getName() throws RemoteException;
/**
* Returns the long description of this component
*/
public String getDescription() throws RemoteException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?