Class Restriction
- java.lang.Object
-
- io.streamthoughts.azkarra.api.components.Restriction
-
public class Restriction extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_APPLICATION
static String
TYPE_ENVIRONMENT
static String
TYPE_STREAMS
-
Constructor Summary
Constructors Constructor Description Restriction(String type, String name)
Creates a newRestriction
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Restriction
application()
static Restriction
env(String name)
boolean
equals(Object o)
int
hashCode()
String
name()
static Restriction
streams(String name)
String
toString()
String
type()
-
-
-
Field Detail
-
TYPE_APPLICATION
public static final String TYPE_APPLICATION
- See Also:
- Constant Field Values
-
TYPE_ENVIRONMENT
public static final String TYPE_ENVIRONMENT
- See Also:
- Constant Field Values
-
TYPE_STREAMS
public static final String TYPE_STREAMS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Restriction
public Restriction(String type, String name)
Creates a newRestriction
instance.- Parameters:
type
- the scope type.name
- the scope name.
-
-
Method Detail
-
application
public static Restriction application()
-
env
public static Restriction env(String name)
-
streams
public static Restriction streams(String name)
-
type
public String type()
-
name
public String name()
-
-