public final class MapProxyTool extends Object
Modifier and Type | Method and Description |
---|---|
static Class |
classForName(String className,
Map<String,Class<?>> properties,
ClassLoaderService classLoaderService)
Generates/loads proxy class for given name with properties for map.
|
protected static Class |
generate(String className,
Map<String,Class<?>> properties)
Protected for test only
|
static Object |
newInstanceOfBeanProxyForMap(String className,
Map<String,Object> map,
Set<PropertyData> propertyDatas,
ClassLoaderService classLoaderService) |
public static Object newInstanceOfBeanProxyForMap(String className, Map<String,Object> map, Set<PropertyData> propertyDatas, ClassLoaderService classLoaderService)
className
- Name of the class to construct (should be unique within class loader)map
- instance that will be proxied by java beanpropertyDatas
- properties that should java bean declareclassLoaderService
- public static Class classForName(String className, Map<String,Class<?>> properties, ClassLoaderService classLoaderService)
className
- name of the class that will be generated/loadedproperties
- list of properties that should be exposed via java beanclassLoaderService
- Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.