- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
- package javax.ejb;
-
- /**
- * The EJBMetaData interface allows a client to obtain the enterprise Bean's
- * meta-data information.
- *
- * <p> The meta-data is intended for development tools used for
- * building applications that use deployed enterprise Beans, and for clients
- * using a scripting language to access the enterprise Bean.
- *
- * <p> Note that the EJBMetaData is not a remote interface. The class that
- * implements this interface (this class is typically generated by container
- * tools) must be serializable, and must be a valid RMI/IDL value type.
- */
- public interface EJBMetaData {
- /**
- * Obtain the remote home interface of the enterprise Bean.
- */
- EJBHome getEJBHome();
-
- /**
- * Obtain the Class object for the enterprise Bean's remote home interface.
- */
- Class getHomeInterfaceClass();
-
- /**
- * Obtain the Class object for the enterprise Bean's remote interface.
- */
- Class getRemoteInterfaceClass();
-
- /**
- * Obtain the Class object for the enterprise Bean's primary key class.
- */
- Class getPrimaryKeyClass();
-
- /**
- * Test if the enterprise Bean's type is "session".
- *
- * @return True if the type of the enterprise Bean is session bean.
- */
- boolean isSession();
-
- /**
- * Test if the enterprise Bean's type is "stateless session".
- *
- * @return True if the type of the enterprise Bean is stateless
- * session.
- */
- boolean isStatelessSession();
- }