Appendix A Jaguar 1.1 Java Classes and Interfaces
package com.sybase.jaguar.beans.enterprise;
public interface CommunicationDriver
The interface implemented by driver classes that handle communication between a Java client and a Jaguar server.
None. See CommunicationManager.getDriver(String) and Stub.getCommunicationDriver().
true
if
the communication driver instantiates stubs for the protocol identified
in the given URL.
jaguar.beans.enterprise.CommunicationManager class
Returns true
if the communication
driver instantiates stubs for the protocol identified in the given
URL.
Package |
|
Interface |
public abstract boolean acceptsURL(String url)
throws EnterpriseBeanException;
URL
A URL that identifies an Enterprise JavaBean. See CommunicationManager.createInstance(String, Class) for details on the URL format.
true
if the communication
driver instantiates stubs for the protocol identified in the given
URL.
CommunicationManager.getDriver(String)
Attempts to create a stub instance for the component identified by the given URL.
Package |
|
Interface |
public static synchronized Stub createInstance
(String URL, Class typeView)
throws EnterpriseBeanException
URL
A Uniform Resource Locator (URL) of the form:
ejb:protocol[//subprotocol1]
where protocol identifies which CommunicationDriver instance will be used to instantiate the stub class and the rest of the URL indicates a server component and the particulars that are required to establish communication with the server. Each implementation of CommunicationDriver recognizes a different protocol. See the CommunicationManager.createInstance(String, Class) for a description of the URL to use for Jaguar components.
typeView
Not used. Pass as null
.
An instance of the stub class for the component specified by URL. Throws an exception if the driver cannot instantiate the specified component.
CommunicationDriver.createInstance is called by the CommunicationManager class. To instantiate stubs for use in client applications, call CommunicationManager.createInstance(String, Class).
CommunicationManager.createInstance(String, Class)
Returns the major version number of the driver.
Package |
|
Interface |
public abstract int getMajorVersion();
The major (high) component of the driver's version number.
Returns the minor version number of the driver.
Package |
|
Interface |
public abstract int getMinorVersion();
The major (low) component of the driver's version number.
Copyright © 2000 Sybase, Inc. All rights reserved. |
![]() |