public class TCCLEJBClientContextSelectorService extends Object implements org.jboss.msc.service.Service<TCCLEJBClientContextSelectorService>, org.jboss.ejb.client.ContextSelector<org.jboss.ejb.client.EJBClientContext>
EJBClientContext
based on the thread context classloader
that's present when the getCurrent()
is invoked.Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
TCCL_BASED_EJB_CLIENT_CONTEXT_SELECTOR_SERVICE_NAME |
Constructor and Description |
---|
TCCLEJBClientContextSelectorService() |
Modifier and Type | Method and Description |
---|---|
org.jboss.ejb.client.EJBClientContext |
getCurrent() |
TCCLEJBClientContextSelectorService |
getValue() |
void |
registerEJBClientContext(org.jboss.ejb.client.EJBClientContext ejbClientContext,
ClassLoader classLoader)
Associates a
EJBClientContext with the passed classLoader . |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final org.jboss.msc.service.ServiceName TCCL_BASED_EJB_CLIENT_CONTEXT_SELECTOR_SERVICE_NAME
public org.jboss.ejb.client.EJBClientContext getCurrent()
getCurrent
in interface org.jboss.ejb.client.ContextSelector<org.jboss.ejb.client.EJBClientContext>
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<TCCLEJBClientContextSelectorService>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<TCCLEJBClientContextSelectorService>
public TCCLEJBClientContextSelectorService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<TCCLEJBClientContextSelectorService>
IllegalStateException
IllegalArgumentException
public void registerEJBClientContext(org.jboss.ejb.client.EJBClientContext ejbClientContext, ClassLoader classLoader)
EJBClientContext
with the passed classLoader
.ejbClientContext
- The EJB client contextclassLoader
- The classloader with which the EJB client context has to be associatedCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.