java.lang.Object
io.jooby.ServiceKey<T>
- Type Parameters:
T
- Service type.
Utility class to access application services.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Resource name ornull
.getType()
Resource type.int
hashCode()
static <T> ServiceKey<T>
Creates a resource key.static <T> ServiceKey<T>
Creates a named resource key.toString()
-
Method Details
-
getType
Resource type.- Returns:
- Resource type.
-
getName
Resource name ornull
.- Returns:
- Resource name or
null
.
-
equals
-
hashCode
public int hashCode() -
toString
-
key
Creates a resource key.- Type Parameters:
T
- Type.- Parameters:
type
- Resource type.- Returns:
- A new resource key.
-
key
Creates a named resource key.- Type Parameters:
T
- Type.- Parameters:
type
- Resource type.name
- Resource name.- Returns:
- A new resource key.
-