Java Code Examples for com.thoughtworks.xstream.converters.reflection.FieldDictionary

The following examples show how to use com.thoughtworks.xstream.converters.reflection.FieldDictionary. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: camel-quarkus   Source File: SubstituteJVM.java    License: Apache License 2.0 4 votes vote down vote up
@Substitute
public static ReflectionProvider newReflectionProvider(FieldDictionary dictionary) {
    /* The default SunUnsafeReflectionProvider would require registering every field of every bean for unsafe access */
    return new SunLimitedUnsafeReflectionProvider(dictionary);
}
 
Example 2
Source Project: lams   Source File: JVM.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create the best matching ReflectionProvider.
 *
 * @param dictionary the FieldDictionary to use by the ReflectionProvider
 * @return a new instance
 * @since 1.4.5
 */
public static ReflectionProvider newReflectionProvider(FieldDictionary dictionary) {
    return (ReflectionProvider)DependencyInjectionFactory.newInstance(reflectionProviderType, new Object[]{ dictionary });
}