Package org.jboss.ejb.protocol.remote
Class RemoteTransportProvider
- java.lang.Object
-
- org.jboss.ejb.protocol.remote.RemoteTransportProvider
-
- All Implemented Interfaces:
EJBTransportProvider
@MetaInfServices public final class RemoteTransportProvider extends Object implements EJBTransportProvider
The JBoss Remoting-based transport provider.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description RemoteTransportProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(EJBReceiverContext receiverContext)EJBReceivergetReceiver(EJBReceiverContext receiverContext, String uriScheme)Get an EJB receiver for the protocol identified by the given URI scheme.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
public void notifyRegistered(EJBReceiverContext receiverContext)
Description copied from interface:EJBTransportProviderNotify the provider instance that it has been registered with the given client context.- Specified by:
notifyRegisteredin interfaceEJBTransportProvider- Parameters:
receiverContext- the EJB receiver context (notnull)
-
supportsProtocol
public boolean supportsProtocol(String uriScheme)
Description copied from interface:EJBTransportProviderDetermine whether this transport provider supports the protocol identified by the given URI scheme.- Specified by:
supportsProtocolin interfaceEJBTransportProvider- Parameters:
uriScheme- the URI scheme- Returns:
trueif this provider supports the protocol,falseotherwise
-
getReceiver
public EJBReceiver getReceiver(EJBReceiverContext receiverContext, String uriScheme) throws IllegalArgumentException
Description copied from interface:EJBTransportProviderGet an EJB receiver for the protocol identified by the given URI scheme.- Specified by:
getReceiverin interfaceEJBTransportProvider- Parameters:
receiverContext- the receiver contexturiScheme- the URI scheme- Returns:
- the non-
nullEJB receiver - Throws:
IllegalArgumentException- if the protocol is not supported
-
close
public void close(EJBReceiverContext receiverContext) throws Exception
- Specified by:
closein interfaceEJBTransportProvider- Throws:
Exception
-
-