Class BaseDescriptorRegistry
- java.lang.Object
-
- com.xebialabs.deployit.plugin.api.reflect.BaseDescriptorRegistry
-
- All Implemented Interfaces:
IDescriptorRegistry,java.lang.AutoCloseable
public abstract class BaseDescriptorRegistry extends java.lang.Object implements IDescriptorRegistry
A registry for theConfigurationItems the XL Deploy system should know about. Every CI registry must extend this class, and it can be added to the collection of known registries, which is kept in this class.One special descriptor registry is the LocalDescriptorRegistry, which is usually the default one. Another descriptor registry is the RemoteDescriptorRegistry.
-
-
Field Summary
-
Fields inherited from interface com.xebialabs.deployit.plugin.api.reflect.IDescriptorRegistry
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseDescriptorRegistry(DescriptorRegistryId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorRegistryIdgetId()TypelookupType(java.lang.Class<?> ciClass)Searches in the registry for a CI type by CI class.TypelookupType(java.lang.String typeName)Searches in the registry for a CI type by CI prefixed type name.TypelookupType(java.lang.String prefix, java.lang.String simpleName)Searches in the registry for a CI type by CI prefix and simple name.voidverifyTypes()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.xebialabs.deployit.plugin.api.reflect.IDescriptorRegistry
_exists, _getDescriptor, _getDescriptors, _getSubtypes, close, getOrder, isDefault, isLocal, register, registerSubtype
-
-
-
-
Constructor Detail
-
BaseDescriptorRegistry
protected BaseDescriptorRegistry(DescriptorRegistryId id)
-
-
Method Detail
-
lookupType
public Type lookupType(java.lang.Class<?> ciClass)
Searches in the registry for a CI type by CI class.- Specified by:
lookupTypein interfaceIDescriptorRegistry- Parameters:
ciClass- A class instance of a CI.- Returns:
- The type for the given CI class.
-
lookupType
public Type lookupType(java.lang.String typeName)
Searches in the registry for a CI type by CI prefixed type name.- Specified by:
lookupTypein interfaceIDescriptorRegistry- Parameters:
typeName- The prefixed type name of a CI.- Returns:
- The type of the CI.
-
lookupType
public Type lookupType(java.lang.String prefix, java.lang.String simpleName)
Searches in the registry for a CI type by CI prefix and simple name.- Specified by:
lookupTypein interfaceIDescriptorRegistry- Parameters:
prefix- The prefix of a CI.simpleName- The simple name of a CI.- Returns:
- The type of the CI.
-
getId
public DescriptorRegistryId getId()
- Specified by:
getIdin interfaceIDescriptorRegistry
-
verifyTypes
public void verifyTypes()
- Specified by:
verifyTypesin interfaceIDescriptorRegistry
-
-