public class ConnectorUtils extends Object
| Constructor and Description |
|---|
ConnectorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createInstance(String userClassName,
Class<T> xface,
ClassLoader classLoader)
Create an instance of
userClassName using provided classLoader. |
static org.apache.pulsar.common.policies.data.OffloadPolicies |
getProperties(Map<String,String> configMap) |
public static <T> T createInstance(String userClassName, Class<T> xface, ClassLoader classLoader)
userClassName using provided classLoader.
This instance should implement the provided interface xface.userClassName - user class namexface - the interface that the reflected instance should implementclassLoader - class loader to load the class.Copyright © 2019–2021 The Apache Software Foundation. All rights reserved.