@Named(value="propertyContainsActivator") @Singleton public class PropertyContainsActivator extends Object
| Constructor and Description |
|---|
PropertyContainsActivator()
Construct a PropertyContainsActivator.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSupportedActivatorBracketName()
Get the String to match the name withing the brackets of the magic property name.
|
default String |
getUserOrSystemProperty(String name,
org.apache.maven.model.profile.ProfileActivationContext context) |
boolean |
isActive(String name,
org.apache.maven.model.ActivationProperty property,
org.apache.maven.model.Profile profile,
org.apache.maven.model.profile.ProfileActivationContext context,
org.apache.maven.model.building.ModelProblemCollector problems)
Tests the activator to determine whether its result is truthy.
|
default boolean |
match(String subject,
org.apache.maven.model.ActivationProperty property) |
default boolean |
match(String subject,
org.apache.maven.model.ActivationProperty property,
boolean lowercaseIt) |
String |
toString() |
public PropertyContainsActivator()
public String getSupportedActivatorBracketName()
FinerActivator<property><name> is [FINER.ACTIVATOR.REGEX]os.name,
the activator whose activator bracket value matches "FINER.ACTIVATOR.REGEX" will be chosen.getSupportedActivatorBracketName in interface FinerActivatorpublic boolean isActive(String name, org.apache.maven.model.ActivationProperty property, org.apache.maven.model.Profile profile, org.apache.maven.model.profile.ProfileActivationContext context, org.apache.maven.model.building.ModelProblemCollector problems)
FinerActivatorisActive in interface FinerActivatorname - The name of the property with the brackets ([FINER.ACTIVATOR.*]) removedproperty - The property objectprofile - The profilecontext - The activation contextproblems - A collector of problemspublic boolean match(String subject, org.apache.maven.model.ActivationProperty property)
public boolean match(String subject, org.apache.maven.model.ActivationProperty property, boolean lowercaseIt)
public String getUserOrSystemProperty(String name, org.apache.maven.model.profile.ProfileActivationContext context)
Copyright © 2023 OddSource Code. All rights reserved.