comparison core/src/luan/modules/IoLuan.java @ 433:c6bcb8859b93

make LuanState.registry a Map; remove generics from DeepCloneable; add Map support to DeepCloner;
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 03 May 2015 15:45:39 -0600
parents d9df6d6cb927
children 5b36f663a1b8
comparison
equal deleted inserted replaced
432:d9df6d6cb927 433:c6bcb8859b93
677 } 677 }
678 678
679 private static String SECURITY_KEY = "Io.Security"; 679 private static String SECURITY_KEY = "Io.Security";
680 680
681 private static void check(LuanState luan,String name) throws LuanException { 681 private static void check(LuanState luan,String name) throws LuanException {
682 Security s = (Security)luan.registry().rawGet(SECURITY_KEY); 682 Security s = (Security)luan.registry().get(SECURITY_KEY);
683 if( s!=null ) 683 if( s!=null )
684 s.check(luan,name); 684 s.check(luan,name);
685 } 685 }
686 686
687 public static void setSecurity(LuanState luan,Security s) { 687 public static void setSecurity(LuanState luan,Security s) {
688 luan.registry().rawPut(SECURITY_KEY,s); 688 luan.registry().put(SECURITY_KEY,s);
689 } 689 }
690 690
691 private void IoLuan() {} // never 691 private void IoLuan() {} // never
692 } 692 }