|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.servicecontainer.handler.ServiceLoader
public class ServiceLoader
Service loader.
| コンストラクタの概要 | |
|---|---|
ServiceLoader(ServiceContext serviceContext)
|
|
| メソッドの概要 | ||
|---|---|---|
Iterable<String> |
listServiceNames()
|
|
|
load(ClassLoader classLoader,
String serviceName,
Class<T> serviceInterface)
Load service. |
|
|
load(String serviceName,
Class<T> serviceInterface)
Load service. |
|
ServiceFactory |
loadServiceFactory(ClassLoader classLoader,
String serviceName)
Load service factory. |
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ServiceLoader(ServiceContext serviceContext)
| メソッドの詳細 |
|---|
public Iterable<String> listServiceNames()
throws IOException
IOException
public <T> T load(String serviceName,
Class<T> serviceInterface)
T - the type of service interface.serviceName - the service name.serviceInterface - the service interface.
public <T> T load(ClassLoader classLoader,
String serviceName,
Class<T> serviceInterface)
T - the type of service interface.classLoader - the class loader used for loading service class.serviceName - the service name.serviceInterface - the service interface.
public ServiceFactory loadServiceFactory(ClassLoader classLoader,
String serviceName)
classLoader - the class loader used for loading service factory.serviceName - the service name.
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||