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.
|
Modifier and Type | Method and Description |
---|---|
void |
acquire() |
org.jboss.msc.inject.Injector<ManagedReferenceFactory> |
getManagedObjectInjector()
Get the injector for the item to be bound.
|
org.jboss.msc.inject.Injector<ServiceBasedNamingStore> |
getNamingStoreInjector()
Get the naming store injector.
|
Object |
getSource() |
ManagedReferenceFactory |
getValue()
Get the value from the injected context.
|
void |
release() |
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)
name
- The JNDI name to use for binding. May be either an absolute or relative namepublic BinderService(String name)
public Object getSource()
public void acquire()
public void release()
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.inject.Injector<ManagedReferenceFactory> getManagedObjectInjector()
public org.jboss.msc.inject.Injector<ServiceBasedNamingStore> getNamingStoreInjector()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.