public interface WritableTypeRegistry extends TypeRegistry
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
register(PDeclaredDescriptor<T> declaredType)
Register a declared type.
|
boolean |
register(PService service)
Services are not handled as "declared types", so they need to be registered
separately.
|
<T> void |
registerRecursively(PDeclaredDescriptor<T> declaredType)
Register a declared type recursively.
|
void |
registerRecursively(PService service)
Register the service recursively.
|
void |
registerTypedef(String identifier,
String context,
String target)
Registers a typedef definition.
|
getDeclaredType, getDeclaredType, getProvider, getService, getService, getServiceProvidervoid registerTypedef(@Nonnull String identifier, @Nonnull String context, @Nonnull String target)
identifier - The typedef name (the alias) to put.context - The package context of the typedef.target - The qualified name that the name represents.boolean register(@Nonnull PService service)
service - the service to register.void registerRecursively(@Nonnull PService service)
service - the service to register.<T> boolean register(PDeclaredDescriptor<T> declaredType)
T - The declared java type.declaredType - The descriptor for the type.<T> void registerRecursively(PDeclaredDescriptor<T> declaredType)
T - The declared java type.declaredType - The descriptor for the type.Copyright © 2015–2018 morimekta.net. All rights reserved.