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.
|
void |
release() |
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 void release()
public 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.service.Service<ManagedReferenceFactory>
context
- 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.service.Service<ManagedReferenceFactory>
context
- The stop contextpublic ManagedReferenceFactory getValue() throws IllegalStateException
getValue
in interface org.jboss.msc.value.Value<ManagedReferenceFactory>
IllegalStateException
public org.jboss.msc.value.InjectedValue<ManagedReferenceFactory> getManagedObjectInjector()
public org.jboss.msc.value.InjectedValue<ServiceBasedNamingStore> getNamingStoreInjector()
public String getName()
Copyright © 2018 JBoss by Red Hat. All rights reserved.