Class ClassComponentAliasesGenerator
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.components.ClassComponentAliasesGenerator
-
- All Implemented Interfaces:
ComponentAliasesGenerator
public class ClassComponentAliasesGenerator extends Object implements ComponentAliasesGenerator
ClassComponentAliasesGenerator
can be used to generate aliases from component class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ClassComponentAliasesGenerator.ClassAliasExtractor
static class
ClassComponentAliasesGenerator.DropClassNameSuffixExtractor
-
Constructor Summary
Constructors Constructor Description ClassComponentAliasesGenerator()
Creates a newClassComponentAliasesGenerator
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClassAliasExtractor(ClassComponentAliasesGenerator.ClassAliasExtractor extractor)
Set<String>
getAliasesFor(ComponentDescriptor descriptor, Collection<? extends ComponentDescriptor> allDescriptors)
Gets unique aliases for the specifiedSimpleComponentDescriptor
descriptor.
-
-
-
Constructor Detail
-
ClassComponentAliasesGenerator
public ClassComponentAliasesGenerator()
Creates a newClassComponentAliasesGenerator
instance.
-
-
Method Detail
-
addClassAliasExtractor
public void addClassAliasExtractor(ClassComponentAliasesGenerator.ClassAliasExtractor extractor)
-
getAliasesFor
public Set<String> getAliasesFor(ComponentDescriptor descriptor, Collection<? extends ComponentDescriptor> allDescriptors)
Gets unique aliases for the specifiedSimpleComponentDescriptor
descriptor.- Specified by:
getAliasesFor
in interfaceComponentAliasesGenerator
- Parameters:
descriptor
- theSimpleComponentDescriptor
descriptor.allDescriptors
- the list of existingSimpleComponentDescriptor
instances.- Returns:
- the set of unique aliases.
-
-