public abstract class DescriptorRegistry
extends java.lang.Object
ConfigurationItem
s 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.Modifier | Constructor and Description |
---|---|
protected |
DescriptorRegistry(DescriptorRegistryId id) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
_exists(Type type) |
protected abstract Descriptor |
_getDescriptor(Type type) |
protected abstract java.util.Collection<Descriptor> |
_getDescriptors() |
protected abstract java.util.Collection<Type> |
_getSubtypes(Type supertype) |
static void |
add(DescriptorRegistry registry)
Registers a DescriptorRegistry to a global map.
|
static boolean |
exists(Type type) |
static Descriptor |
getDescriptor(java.lang.String prefixedName) |
static Descriptor |
getDescriptor(java.lang.String prefix,
java.lang.String name) |
static Descriptor |
getDescriptor(Type type) |
static DescriptorRegistry |
getDescriptorRegistry(DescriptorRegistryId id)
Gets a DescriptorRegistry by id.
|
static java.util.Collection<Descriptor> |
getDescriptors() |
protected static DescriptorRegistry |
getInstance() |
static java.util.Collection<Type> |
getSubtypes(Type supertype) |
protected abstract boolean |
isLocal() |
Type |
lookupType(java.lang.Class<?> ciClass)
Searches in the registry for a CI type by CI class.
|
Type |
lookupType(java.lang.String typeName)
Searches in the registry for a CI type by CI prefixed type name.
|
Type |
lookupType(java.lang.String prefix,
java.lang.String simpleName)
Searches in the registry for a CI type by CI prefix and simple name.
|
static void |
remove(DescriptorRegistryId id)
Unregisters the descriptor registry with the specified id.
|
protected DescriptorRegistry(DescriptorRegistryId id)
public static void add(DescriptorRegistry registry)
public static void remove(DescriptorRegistryId id)
public static java.util.Collection<Descriptor> getDescriptors()
public static java.util.Collection<Type> getSubtypes(Type supertype)
supertype
- The super type to search against.public static Descriptor getDescriptor(java.lang.String prefixedName)
prefixedName
- The prefixed type name of a CI.public static Descriptor getDescriptor(java.lang.String prefix, java.lang.String name)
prefix
- The prefix of a CI.name
- The simple name of a CI.public static Descriptor getDescriptor(Type type)
type
- The type of a CI.public static boolean exists(Type type)
type
- The type of a CI.protected static DescriptorRegistry getInstance()
public static DescriptorRegistry getDescriptorRegistry(DescriptorRegistryId id)
public Type lookupType(java.lang.Class<?> ciClass)
ciClass
- A class instance of a CI.public Type lookupType(java.lang.String typeName)
typeName
- The prefixed type name of a CI.public Type lookupType(java.lang.String prefix, java.lang.String simpleName)
prefix
- The prefix of a CI.simpleName
- The simple name of a CI.protected abstract boolean isLocal()
protected abstract java.util.Collection<Descriptor> _getDescriptors()
protected abstract Descriptor _getDescriptor(Type type)
protected abstract boolean _exists(Type type)