Package net.anotheria.anosite.guard
Class SystemIsDevGuard
- java.lang.Object
-
- net.anotheria.anosite.guard.SystemEnvironmentAbstractGuard
-
- net.anotheria.anosite.guard.SystemIsDevGuard
-
- All Implemented Interfaces:
ConditionalGuard
- Direct Known Subclasses:
SystemIsNotDevGuard
public class SystemIsDevGuard extends SystemEnvironmentAbstractGuard
-
-
Constructor Summary
Constructors Constructor Description SystemIsDevGuard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetTargetEnvironmentName()Override this method to provide name of target environment.protected booleanshouldMatch()Override this method in a way that it would return true if environments should match, false otherwise.-
Methods inherited from class net.anotheria.anosite.guard.SystemEnvironmentAbstractGuard
isConditionFullfilled
-
-
-
-
Method Detail
-
getTargetEnvironmentName
protected String getTargetEnvironmentName()
Description copied from class:SystemEnvironmentAbstractGuardOverride this method to provide name of target environment.- Specified by:
getTargetEnvironmentNamein classSystemEnvironmentAbstractGuard- Returns:
- name of the environment
-
shouldMatch
protected boolean shouldMatch()
Description copied from class:SystemEnvironmentAbstractGuardOverride this method in a way that it would return true if environments should match, false otherwise.- Specified by:
shouldMatchin classSystemEnvironmentAbstractGuard- Returns:
- boolean value.
-
-