Class ComponentDescriptorModifiers
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.components.ComponentDescriptorModifiers
-
public class ComponentDescriptorModifiers extends Object
-
-
Constructor Summary
Constructors Constructor Description ComponentDescriptorModifiers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComponentDescriptorModifier
asEager()
Gets a modifier implementation that will set a component as eager.static ComponentDescriptorModifier
asPrimary()
Gets a modifier implementation that will set a component as primary.static ComponentDescriptorModifier
asSecondary()
Gets a modifier implementation that will set a component as secondary.static ComponentDescriptorModifier
withConditions(Condition... conditions)
Gets a modifier implementation that will set the conditions that conditions that need to be fulfilled for the component to be eligible for use in the application.static ComponentDescriptorModifier
withConditions(List<Condition> conditions)
Gets a modifier implementation that will set the conditions that conditions that need to be fulfilled for the component to be eligible for use in the application.static ComponentDescriptorModifier
withOrder(int order)
Gets a modifier implementation that will set the given order of the component.
-
-
-
Method Detail
-
asEager
public static ComponentDescriptorModifier asEager()
Gets a modifier implementation that will set a component as eager.- Returns:
- a new
ComponentDescriptorModifier
instance.
-
asPrimary
public static ComponentDescriptorModifier asPrimary()
Gets a modifier implementation that will set a component as primary.- Returns:
- a new
ComponentDescriptorModifier
instance.
-
asSecondary
public static ComponentDescriptorModifier asSecondary()
Gets a modifier implementation that will set a component as secondary.- Returns:
- a new
ComponentDescriptorModifier
instance.
-
withOrder
public static ComponentDescriptorModifier withOrder(int order)
Gets a modifier implementation that will set the given order of the component.- Parameters:
order
- the component order to set.- Returns:
- a new
ComponentDescriptorModifier
instance.
-
withConditions
public static ComponentDescriptorModifier withConditions(Condition... conditions)
Gets a modifier implementation that will set the conditions that conditions that need to be fulfilled for the component to be eligible for use in the application.- Parameters:
conditions
- theCondition
s to add.- Returns:
- a new
ComponentDescriptorModifier
instance.
-
withConditions
public static ComponentDescriptorModifier withConditions(List<Condition> conditions)
Gets a modifier implementation that will set the conditions that conditions that need to be fulfilled for the component to be eligible for use in the application.- Parameters:
conditions
- theCondition
s to add.- Returns:
- a new
ComponentDescriptorModifier
instance.
-
-