messaging-activemq/src/main/java/org/wildfly/extension/messaging/activemq/BinderServiceUtil.java
public static void installBinderService(final ServiceTarget serviceTarget,
                                                 final String name,
                                                 final Object obj) {
        final BindInfo bindInfo = ContextNames.bindInfoFor(name);
        final BinderService binderService = new BinderService(bindInfo.getBindName());
        binderService.getManagedObjectInjector().inject(new ValueManagedReferenceFactory(Values.immediateValue(obj)));
        serviceTarget.addService(bindInfo.getBinderServiceName(), binderService)
                .addDependency(bindInfo.getParentContextServiceName(), ServiceBasedNamingStore.class, binderService.getNamingStoreInjector())
                .install();
    }
public static void installBinderService(final ServiceTarget serviceTarget,
                                                 final String name,
                                                 final Object obj) {
        final BindInfo bindInfo = ContextNames.bindInfoFor(name);
        final BinderService binderService = new BinderService(bindInfo.getBindName());
        binderService.getManagedObjectInjector().inject(new ValueManagedReferenceFactory(Values.immediateValue(obj)));
        serviceTarget.addService(bindInfo.getBinderServiceName(), binderService)
                .addDependency(bindInfo.getParentContextServiceName(), ServiceBasedNamingStore.class, binderService.getNamingStoreInjector())
                .install();
    }
public static void installBinderService ( final ServiceTarget serviceTarget , final String name , final Object obj ) { final BindInfo bindInfo = ContextNames . bindInfoFor ( name ) ; final BinderService binderService = new BinderService ( bindInfo . getBindName ( ) ) ; binderService . getManagedObjectInjector ( ) . inject ( new ValueManagedReferenceFactory ( Values . immediateValue ( obj ) ) ) ; serviceTarget . addService ( bindInfo . getBinderServiceName ( ) , binderService ) . addDependency ( bindInfo . getParentContextServiceName ( ) , ServiceBasedNamingStore . class , binderService . getNamingStoreInjector ( ) ) . install ( ) ; }
Install a binder service to bind the {@code obj} using the binding {@code name}.

@param serviceTarget
@param name the binding name
@param obj the object that must be bound
Install a binder service to bind the { @code obj } using the binding { @code name } .