public static void init(final ClassLoader classLoader, final ClassLoader[] propertyLoaders) {
        getInstance().classLoader = classLoader;
        
        if(propertyLoaders != null && propertyLoaders.length != 0) {
            Map<Integer, ClassLoader> loaderMap = new HashMap<>();
            for(ClassLoader propertyLoader : propertyLoaders) {
                loaderMap.put(propertyLoader.hashCode(), propertyLoader);
            }
            
            getInstance().ognlContext = new OgnlContext(loaderMap);
            getInstance().ognlContext.setMemberAccess(new DefaultMemberAccess(true));
            getInstance().ognlContext.setClassResolver(new MultipleLoaderClassResolver());
            
        }
    }
public static void init ( final ClassLoader classLoader , final ClassLoader [ ] propertyLoaders ) { getInstance ( ) . classLoader = classLoader ; if ( propertyLoaders != null && propertyLoaders . length != 0 ) { Map < Integer , ClassLoader > loaderMap = new HashMap < > ( ) ; for ( ClassLoader propertyLoader : propertyLoaders ) { loaderMap . put ( propertyLoader . hashCode ( ) , propertyLoader ) ; } getInstance ( ) . ognlContext = new OgnlContext ( loaderMap ) ; getInstance ( ) . ognlContext . setMemberAccess ( new DefaultMemberAccess ( true ) ) ; getInstance ( ) . ognlContext . setClassResolver ( new MultipleLoaderClassResolver ( ) ) ; } }
アノテーションが定義されたClassLoaderとJavaBeansを定義したClassLoaderを設定する。
@param classLoader アノテーションを見つけるために使用するClassLoader
@param propertyLoaders JavaBeansを見つけるために使用するClassLoader