public class ServiceRegistryImpl extends Object implements ServiceRegistry
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceRegistryImpl.FactoryInstantiator<V> |
static class |
ServiceRegistryImpl.ReflectionInstantiator<V> |
static class |
ServiceRegistryImpl.ReturnInstance<V> |
| Modifier and Type | Field and Description |
|---|---|
String |
fileName |
protected static org.slf4j.Logger |
logger |
String |
path |
| Constructor and Description |
|---|
ServiceRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefault(Class cls,
String impl) |
void |
addDefaultFactory(Class cls,
String impl) |
<T> T |
get(Class<T> cls) |
static ServiceRegistry |
getInstance() |
void |
registerLocator(Class cls,
Callable cal) |
void |
unregisterLocator(Class cls) |
public final String fileName
public final String path
protected static final transient org.slf4j.Logger logger
public static ServiceRegistry getInstance()
public void registerLocator(Class cls, Callable cal)
registerLocator in interface ServiceRegistrypublic void unregisterLocator(Class cls)
unregisterLocator in interface ServiceRegistrypublic <T> T get(Class<T> cls)
get in interface ServiceRegistrypublic void addDefault(Class cls, String impl)
addDefault in interface ServiceRegistryCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.