public final class DefaultServiceContext extends Object implements org.apache.tamaya.spi.ServiceContext
ServiceContext
interface and hereby uses the JDK
ServiceLoader
to load the services required.Constructor and Description |
---|
DefaultServiceContext() |
Modifier and Type | Method and Description |
---|---|
static int |
getPriority(Object o)
Checks the given instance for a @Priority annotation.
|
<T> T |
getService(Class<T> serviceType) |
<T> List<T> |
getServices(Class<T> serviceType)
Loads and registers services.
|
int |
ordinal() |
public <T> T getService(Class<T> serviceType)
getService
in interface org.apache.tamaya.spi.ServiceContext
public <T> List<T> getServices(Class<T> serviceType)
getServices
in interface org.apache.tamaya.spi.ServiceContext
T
- the concrete type.serviceType
- The service type.null
.public static int getPriority(Object o)
o
- the instance, not null.public int ordinal()
ordinal
in interface org.apache.tamaya.spi.ServiceContext
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.