public static ProxyMetaClass getInstance ( Class theClass ) throws IntrospectionException { MetaClassRegistry metaRegistry = GroovySystem . getMetaClassRegistry ( ) ; MetaClass meta = metaRegistry . getMetaClass ( theClass ) ; return new ProxyMetaClass ( metaRegistry , theClass , meta ) ; }
convenience factory method for the most usual case .