Class AbstractDiscriminatorRegistry<T,X extends T>
- java.lang.Object
-
- com.atlassian.bamboo.persistence3.AbstractDiscriminatorRegistry<T,X>
-
- Direct Known Subclasses:
PlanDiscriminatorRegistry
,ResultsSummaryDiscriminatorRegistry
public abstract class AbstractDiscriminatorRegistry<T,X extends T> extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractDiscriminatorRegistry()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Class<X>
getBaseClass()
String
getDiscriminatorForType(Class<? extends T> aClass)
Get the discriminator for the given Class.Set<String>
getDiscriminatorsForType(Class<? extends T> aClass)
Get the discriminators needed to lookup the givenClass
@Nullable Class<? extends T>
getTypeForDiscriminator(@NotNull String discriminator)
boolean
isConcretelyMappedType(Class<? extends T> aClass)
Tests if the provided type is concretely mapped
-
-
-
Method Detail
-
getDiscriminatorsForType
public Set<String> getDiscriminatorsForType(Class<? extends T> aClass)
Get the discriminators needed to lookup the givenClass
- Parameters:
aClass
-- Returns:
- discriminators
-
getDiscriminatorForType
public String getDiscriminatorForType(Class<? extends T> aClass)
Get the discriminator for the given Class.- Parameters:
aClass
-- Returns:
- discriminator
-
getTypeForDiscriminator
@Nullable public @Nullable Class<? extends T> getTypeForDiscriminator(@NotNull @NotNull String discriminator)
-
-