public static void setNameProvider(NameProvider nameProvider) throws SecurityException {
        SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            sm.checkPermission(new JodaTimePermission("DateTimeZone.setNameProvider"));
        }
        if (nameProvider == null) {
            nameProvider = getDefaultNameProvider();
        }
        cNameProvider.set(nameProvider);
    }
public static void setNameProvider ( NameProvider nameProvider ) throws SecurityException { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( new JodaTimePermission ( "DateTimeZone.setNameProvider" ) ) ; } if ( nameProvider == null ) { nameProvider = getDefaultNameProvider ( ) ; } cNameProvider . set ( nameProvider ) ; }
Sets the name provider factory.
<p>
The name provider is a pluggable instance factory that supplies the
names of each DateTimeZone.

@param nameProvider  provider to use, or null for default
@throws SecurityException if you do not have the permission DateTimeZone.setNameProvider
@throws IllegalArgumentException if the provider is invalid