Package kieker.model.repository
Class TypeRepository
java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.TypeRepository
public class TypeRepository extends AbstractRepository
This is a repository in which the different component types
(
ComponentType
) can be stored.- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
Fields Modifier and Type Field Description static ComponentType
ROOT_COMPONENT
This constant represents the root component. -
Constructor Summary
Constructors Constructor Description TypeRepository(SystemModelRepository systemFactory)
Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description ComponentType
createAndRegisterComponentType(java.lang.String namedIdentifier, java.lang.String fullqualifiedName)
Creates and registers a component type that has not been registered yet.java.util.Collection<ComponentType>
getComponentTypes()
Returns a collection of all registered component types.ComponentType
lookupComponentTypeByNamedIdentifier(java.lang.String namedIdentifier)
Returns the instance for the passed namedIdentifier; null if no instance with this namedIdentifier.Methods inherited from class kieker.model.repository.AbstractRepository
getAndIncrementNextId, getSystemFactory
-
Field Details
-
ROOT_COMPONENT
This constant represents the root component.
-
-
Constructor Details
-
TypeRepository
Creates a new instance of this class using the given parameters.- Parameters:
systemFactory
- The system factory.
-
-
Method Details
-
lookupComponentTypeByNamedIdentifier
Returns the instance for the passed namedIdentifier; null if no instance with this namedIdentifier.- Parameters:
namedIdentifier
- The identifier to search for.- Returns:
- The corresponding component type if available; null otherwise.
-
createAndRegisterComponentType
public final ComponentType createAndRegisterComponentType(java.lang.String namedIdentifier, java.lang.String fullqualifiedName)Creates and registers a component type that has not been registered yet.- Parameters:
namedIdentifier
- The identifier of the new component type.fullqualifiedName
- The fully qualfieid name of the new component type.- Returns:
- the created component type
-
getComponentTypes
Returns a collection of all registered component types.- Returns:
- a collection of all registered component types.
-