Package org.jboss.ejb.client
Interface EJBTransportProvider
-
- All Known Implementing Classes:
RemoteTransportProvider
public interface EJBTransportProviderAn EJB 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 EJB 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 EJB 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 EJB receiver for the protocol identified by the given URI scheme.- Parameters:
receiverContext- the receiver contexturiScheme- the URI scheme- Returns:
- the non-
nullEJB receiver - Throws:
IllegalArgumentException- if the protocol is not supported
-
close
default void close(EJBReceiverContext receiverContext) throws Exception
- Throws:
Exception
-
-