naming/src/main/java/org/jboss/as/naming/InMemoryNamingStore.java
public void addNamingListener(final Name target, final int scope, final NamingListener listener) {
        final NamingEventCoordinator coordinator = eventCoordinator;
        if (coordinator != null) {
            coordinator.addListener(target.toString(), scope, listener);
        }
    }
public void addNamingListener(final Name target, final int scope, final NamingListener listener) {
        final NamingEventCoordinator coordinator = eventCoordinator;
        if (coordinator != null) {
            coordinator.addListener(target.toString(), scope, listener);
        }
    }
public void addNamingListener ( final Name target , final int scope , final NamingListener listener ) { final NamingEventCoordinator coordinator = eventCoordinator ; if ( coordinator != null ) { coordinator . addListener ( target . toString ( ) , scope , listener ) ; } }
Add a {@code NamingListener} to the naming event coordinator.

@param target The target name to add the listener to
@param scope The listener scope
@param listener The listener
Add a { @code NamingListener } to the naming event coordinator .