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, registerTypedef
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaredType, getService
@Nonnull public <T extends PDeclaredDescriptor<T>> T getDeclaredType(@Nonnull String typeName, @Nonnull String programContext)
TypeRegistry
T
- The described type.typeName
- The type name.programContext
- The program context of the type.@Nonnull public PService getService(String serviceName, String programContext)
TypeRegistry
serviceName
- The service name.programContext
- The program context name to get the service in.public boolean register(@Nonnull PService service)
WritableTypeRegistry
service
- the service to register.public <T> boolean register(PDeclaredDescriptor<T> declaredType)
WritableTypeRegistry
T
- The declared java type.declaredType
- The descriptor for the type.Copyright © 2015–2017 morimekta.net. All rights reserved.