public class BinderService extends Object implements org.jboss.msc.service.Service<ManagedReferenceFactory>
| Constructor and Description |
|---|
BinderService(String name) |
BinderService(String name,
Object source)
Construct new instance.
|
BinderService(String name,
Object source,
boolean shared)
Construct new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquire() |
org.jboss.msc.value.InjectedValue<ManagedReferenceFactory> |
getManagedObjectInjector()
Get the injector for the item to be bound.
|
String |
getName() |
org.jboss.msc.value.InjectedValue<ServiceBasedNamingStore> |
getNamingStoreInjector()
Get the naming store injector.
|
org.jboss.msc.service.ServiceName |
getServiceName() |
Object |
getSource() |
ManagedReferenceFactory |
getValue()
Get the value from the injected context.
|
boolean |
release()
Releases the service, returns
true if the service is removed as a result, or false otherwise |
void |
setSource(Object source) |
void |
start(org.jboss.msc.service.StartContext context)
Bind the entry into the injected context.
|
void |
stop(org.jboss.msc.service.StopContext context)
Unbind the entry from the injected context.
|
String |
toString() |
public BinderService(String name, Object source, boolean shared)
name - The JNDI name to use for binding. May be either an absolute or relative namesource - shared - indicates if the bind may be shared among multiple deployments, if true the service tracks references indicated through acquire(), and automatically stops once all deployments unreference it through release()public BinderService(String name, Object source)
name - The JNDI name to use for binding. May be either an absolute or relative namepublic BinderService(String name)
public Object getSource()
public void setSource(Object source)
public void acquire()
public boolean release()
true if the service is removed as a result, or false otherwisepublic org.jboss.msc.service.ServiceName getServiceName()
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Servicecontext - The start contextorg.jboss.msc.service.StartException - If the entity can not be boundpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicecontext - The stop contextpublic ManagedReferenceFactory getValue() throws IllegalStateException
getValue in interface org.jboss.msc.value.Value<ManagedReferenceFactory>IllegalStateExceptionpublic org.jboss.msc.value.InjectedValue<ManagedReferenceFactory> getManagedObjectInjector()
public org.jboss.msc.value.InjectedValue<ServiceBasedNamingStore> getNamingStoreInjector()
public String getName()
Copyright © 2021 JBoss by Red Hat. All rights reserved.