public class SimpleTypeRegistry extends BaseTypeRegistry
| Constructor and Description |
|---|
SimpleTypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T extends PDeclaredDescriptor<T>> |
getDeclaredType(String typeName,
String programContext)
Get the declared type with the given name and program context.
|
PService |
getService(String serviceName,
String programContext)
Get a service definition from the name and program context.
|
<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.
|
finalTypename, getProvider, getServiceProvider, qualifiedNameFromIdAndContext, registerRecursively, registerRecursively, registerTypedefclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeclaredType, getService@Nonnull public <T extends PDeclaredDescriptor<T>> T getDeclaredType(@Nonnull String typeName, @Nonnull String programContext)
TypeRegistryT - The described type.typeName - The type name.programContext - The program context of the type.@Nonnull public PService getService(String serviceName, String programContext)
TypeRegistryserviceName - The service name.programContext - The program context name to get the service in.public boolean register(@Nonnull PService service)
WritableTypeRegistryservice - the service to register.public <T> boolean register(PDeclaredDescriptor<T> declaredType)
WritableTypeRegistryT - The declared java type.declaredType - The descriptor for the type.Copyright © 2015–2017 morimekta.net. All rights reserved.