Package io.toro.martini.service
Class ServiceGroupMeta
- java.lang.Object
-
- io.toro.martini.service.ServiceGroupMeta
-
- All Implemented Interfaces:
io.toro.martini.service.ServiceDescriptor
public final class ServiceGroupMeta extends Object implements io.toro.martini.service.ServiceDescriptor
- Author:
- jerrickpua
-
-
Constructor Summary
Constructors Constructor Description ServiceGroupMeta(ServiceGroup.Type serviceGroupType, String name)
ServiceGroupMeta(io.toro.martini.service.ServiceUri serviceUri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static ServiceGroupMeta
from(String str)
String
getName()
ServiceGroup.Type
getServiceGroupType()
String
getServiceString()
int
hashCode()
static boolean
isParsable(String str)
Checks if the given input can be parsed.io.toro.martini.service.ServiceUri
serviceUri()
io.toro.martini.service.ServiceMeta
toService(String serviceName)
String
toString()
-
-
-
Constructor Detail
-
ServiceGroupMeta
public ServiceGroupMeta(ServiceGroup.Type serviceGroupType, String name)
-
ServiceGroupMeta
public ServiceGroupMeta(io.toro.martini.service.ServiceUri serviceUri)
-
-
Method Detail
-
getName
public String getName()
-
getServiceGroupType
public ServiceGroup.Type getServiceGroupType()
-
from
public static ServiceGroupMeta from(String str)
-
isParsable
public static boolean isParsable(String str)
Checks if the given input can be parsed.- Parameters:
str
- the string to parse- Returns:
- boolean value whether the string can be parsed
-
toService
public io.toro.martini.service.ServiceMeta toService(String serviceName)
-
getServiceString
public String getServiceString()
- Specified by:
getServiceString
in interfaceio.toro.martini.service.ServiceDescriptor
-
serviceUri
public io.toro.martini.service.ServiceUri serviceUri()
- Specified by:
serviceUri
in interfaceio.toro.martini.service.ServiceDescriptor
-
-