Interface IDescriptorRegistry
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
BaseDescriptorRegistry
public interface IDescriptorRegistry extends java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRECEDENCEstatic intHIGHEST_PRECEDENCEstatic intLOWEST_PRECEDENCE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()booleanexists(Type type)DescriptorgetDescriptor(Type type)java.util.Collection<Descriptor>getDescriptors()java.util.List<DescriptorRegistryHook>getHooks()DescriptorRegistryIdgetId()default intgetOrder()java.util.Collection<Type>getSubtypes(Type supertype)booleanisDefault()booleanisLocal()TypelookupType(java.lang.Class<?> ciClass)TypelookupType(java.lang.String typeName)TypelookupType(java.lang.String prefix, java.lang.String simpleName)voidregister(Descriptor descriptor)voidregisterHook(DescriptorRegistryHook hook)voidregisterSubtype(Type supertype, Type subtype)voidverifyTypes()
-
-
-
Field Detail
-
HIGHEST_PRECEDENCE
static final int HIGHEST_PRECEDENCE
- See Also:
- Constant Field Values
-
LOWEST_PRECEDENCE
static final int LOWEST_PRECEDENCE
- See Also:
- Constant Field Values
-
DEFAULT_PRECEDENCE
static final int DEFAULT_PRECEDENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
DescriptorRegistryId getId()
-
lookupType
Type lookupType(java.lang.String typeName)
-
lookupType
Type lookupType(java.lang.Class<?> ciClass)
-
lookupType
Type lookupType(java.lang.String prefix, java.lang.String simpleName)
-
isLocal
boolean isLocal()
-
isDefault
boolean isDefault()
-
getOrder
default int getOrder()
-
getDescriptors
java.util.Collection<Descriptor> getDescriptors()
-
exists
boolean exists(Type type)
-
getDescriptor
Descriptor getDescriptor(Type type)
-
register
void register(Descriptor descriptor)
-
verifyTypes
void verifyTypes()
-
close
default void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
registerHook
void registerHook(DescriptorRegistryHook hook)
-
getHooks
java.util.List<DescriptorRegistryHook> getHooks()
-
-