Package org.jboss.ejb.client
Interface EJBTransportProvider
-
- All Known Implementing Classes:
RemoteTransportProvider
public interface EJBTransportProviderAn Enterprise Bean transport provider.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose(EJBReceiverContext receiverContext)EJBReceivergetReceiver(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 Detail
-
notifyRegistered
default void notifyRegistered(EJBReceiverContext receiverContext)
Notify the provider instance that it has been registered with the given client context.- Parameters:
receiverContext- the Enterprise Beans receiver context (notnull)
-
supportsProtocol
boolean supportsProtocol(String uriScheme)
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
default void close(EJBReceiverContext receiverContext) throws Exception
- Throws:
Exception
-
-