final class ExtensionRegistryFactory
extends java.lang.Object
ExtensionRegistryLite
.
This factory detects (via reflection) if the full (non-Lite) protocol buffer libraries
are available, and if so, the instances returned are actually ExtensionRegistry
.
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.Class<?> |
EXTENSION_REGISTRY_CLASS |
(package private) static java.lang.String |
FULL_REGISTRY_CLASS_NAME |
Constructor and Description |
---|
ExtensionRegistryFactory() |
Modifier and Type | Method and Description |
---|---|
static ExtensionRegistryLite |
create()
Construct a new, empty instance.
|
static ExtensionRegistryLite |
createEmpty()
Get the unmodifiable singleton empty instance.
|
private static ExtensionRegistryLite |
invokeSubclassFactory(java.lang.String methodName) |
(package private) static boolean |
isFullRegistry(ExtensionRegistryLite registry) |
(package private) static java.lang.Class<?> |
reflectExtensionRegistry() |
static final java.lang.String FULL_REGISTRY_CLASS_NAME
static final java.lang.Class<?> EXTENSION_REGISTRY_CLASS
static java.lang.Class<?> reflectExtensionRegistry()
public static ExtensionRegistryLite create()
public static ExtensionRegistryLite createEmpty()
static boolean isFullRegistry(ExtensionRegistryLite registry)
private static final ExtensionRegistryLite invokeSubclassFactory(java.lang.String methodName) throws java.lang.Exception
java.lang.Exception