/** * Unconfigure a bean property * * @param object the object to unconfigure * @param cl the classloader * @param info the bean info * @param metaData the property metadata * @throws Throwable for any error */ public static void unconfigure(Object object, ClassLoader cl, BeanInfo info, PropertyMetaData metaData) throws Throwable { boolean trace = log.isTraceEnabled(); PropertyInfo ainfo = resolveProperty(trace, info, cl, metaData.getName(), metaData.getType()); unconfigure(trace, object, ainfo, metaData); }
/** * Try to get type info from property's class. * * @return type info * @throws Throwable for any error */ protected TypeInfo getTypeInfo() throws Throwable { String className = property.getType(); if (className == null) return null; Kernel kernel = context.getKernel(); KernelConfigurator configurator = kernel.getConfigurator(); return configurator.getTypeInfo(className, cl); }
/** * Configure a bean property * * @param trace whether trace is enabled * @param object the object to configure * @param info the bean info * @param cl the classloader * @param metaData the property metadata * @throws Throwable for any error */ public static void configure(boolean trace, Object object, BeanInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable { PropertyInfo ainfo = resolveProperty(trace, info, cl, metaData.getName(), metaData.getType()); configure(trace, object, ainfo, cl, metaData); }