naming/src/main/java/org/jboss/as/naming/NamingContext.java
public static void initializeNamingManager() {
        // Setup naming environment
        final String property = WildFlySecurityManager.getPropertyPrivileged(Context.URL_PKG_PREFIXES, null);
        if(property == null || property.isEmpty()) {
            WildFlySecurityManager.setPropertyPrivileged(Context.URL_PKG_PREFIXES, PACKAGE_PREFIXES);
        } else if(!Arrays.asList(property.split(":")).contains(PACKAGE_PREFIXES)) {
            WildFlySecurityManager.setPropertyPrivileged(Context.URL_PKG_PREFIXES, PACKAGE_PREFIXES + ":" + property);
        }
        try {
            //If we are reusing the JVM. e.g. in tests we should not set this again
            if (!NamingManager.hasInitialContextFactoryBuilder())
                NamingManager.setInitialContextFactoryBuilder(new InitialContextFactoryBuilder());
        } catch (NamingException e) {
            ROOT_LOGGER.failedToSet(e, "InitialContextFactoryBuilder");
        }
    }
public static void initializeNamingManager() {
        // Setup naming environment
        final String property = WildFlySecurityManager.getPropertyPrivileged(Context.URL_PKG_PREFIXES, null);
        if(property == null || property.isEmpty()) {
            WildFlySecurityManager.setPropertyPrivileged(Context.URL_PKG_PREFIXES, PACKAGE_PREFIXES);
        } else if(!Arrays.asList(property.split(":")).contains(PACKAGE_PREFIXES)) {
            WildFlySecurityManager.setPropertyPrivileged(Context.URL_PKG_PREFIXES, PACKAGE_PREFIXES + ":" + property);
        }
        try {
            //If we are reusing the JVM. e.g. in tests we should not set this again
            if (!NamingManager.hasInitialContextFactoryBuilder())
                NamingManager.setInitialContextFactoryBuilder(new InitialContextFactoryBuilder());
        } catch (NamingException e) {
            ROOT_LOGGER.failedToSet(e, "InitialContextFactoryBuilder");
        }
    }
public static void initializeNamingManager ( ) { // Setup naming environment final String property = WildFlySecurityManager . getPropertyPrivileged ( Context . URL_PKG_PREFIXES , null ) ; if ( property == null || property . isEmpty ( ) ) { WildFlySecurityManager . setPropertyPrivileged ( Context . URL_PKG_PREFIXES , PACKAGE_PREFIXES ) ; } else if ( ! Arrays . asList ( property . split ( ":" ) ) . contains ( PACKAGE_PREFIXES ) ) { WildFlySecurityManager . setPropertyPrivileged ( Context . URL_PKG_PREFIXES , PACKAGE_PREFIXES + ":" + property ) ; } try { //If we are reusing the JVM. e.g. in tests we should not set this again if ( ! NamingManager . hasInitialContextFactoryBuilder ( ) ) NamingManager . setInitialContextFactoryBuilder ( new InitialContextFactoryBuilder ( ) ) ; } catch ( NamingException e ) { ROOT_LOGGER . failedToSet ( e , "InitialContextFactoryBuilder" ) ; } }
Initialize the naming components required by {@link javax.naming.spi.NamingManager}.
Initialize the naming components required by {