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 booleanequals(Object o)static ServiceGroupMetafrom(String str)StringgetName()ServiceGroup.TypegetServiceGroupType()StringgetServiceString()inthashCode()static booleanisParsable(String str)Checks if the given input can be parsed.io.toro.martini.service.ServiceUriserviceUri()io.toro.martini.service.ServiceMetatoService(String serviceName)StringtoString()
-
-
-
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:
getServiceStringin interfaceio.toro.martini.service.ServiceDescriptor
-
serviceUri
public io.toro.martini.service.ServiceUri serviceUri()
- Specified by:
serviceUriin interfaceio.toro.martini.service.ServiceDescriptor
-
-