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 ServiceRegistry
public void unregisterLocator(Class cls)
unregisterLocator
in interface ServiceRegistry
public <T> T get(Class<T> cls)
get
in interface ServiceRegistry
public void addDefault(Class cls, String impl)
addDefault
in interface ServiceRegistry
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.