Package org.jboss.ejb.client
Interface EJBTransportProvider
- All Known Implementing Classes:
RemoteTransportProvider
public interface EJBTransportProvider
An Enterprise Bean transport provider.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose(EJBReceiverContext receiverContext) getReceiver(EJBReceiverContext receiverContext, String uriScheme) Get an Enterprise Bean receiver for the protocol identified by the given URI scheme.default voidnotifyRegistered(EJBReceiverContext receiverContext) Notify the provider instance that it has been registered with the given client context.booleansupportsProtocol(String uriScheme) Determine whether this transport provider supports the protocol identified by the given URI scheme.
-
Method Details
-
notifyRegistered
Notify the provider instance that it has been registered with the given client context.- Parameters:
receiverContext- the Enterprise Beans receiver context (notnull)
-
supportsProtocol
Determine whether this transport provider supports the protocol identified by the given URI scheme.- Parameters:
uriScheme- the URI scheme- Returns:
trueif this provider supports the protocol,falseotherwise
-
getReceiver
EJBReceiver getReceiver(EJBReceiverContext receiverContext, String uriScheme) throws IllegalArgumentException Get an Enterprise Bean receiver for the protocol identified by the given URI scheme.- Parameters:
receiverContext- the receiver contexturiScheme- the URI scheme- Returns:
- the non-
nullEnterprise Beans receiver - Throws:
IllegalArgumentException- if the protocol is not supported
-
close
- Throws:
Exception
-