public abstract class MDPoolBean<S,T extends MDPoolConfigBean<S,T>> extends Object implements RegistrarBeanWithDefaultBeanClass
Modifier and Type | Field and Description |
---|---|
static String |
POOL_CLASS |
static String |
POOL_SIZE |
static String |
REPO_CLASS |
static String |
REPO_URI |
Constructor and Description |
---|
MDPoolBean() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addRepo(String domain,
S repo)
Method called to add repo instance for domain
|
protected abstract Class<? extends T> |
getConfigClass()
Returns per domain configuration class
|
String |
getDefaultAlias()
Default alias used if for provided domain then is no repo instance.
|
String |
getName() |
void |
register(Kernel kernel)
Method called when bean is being registered allowing developer to programatically register other beans.
|
protected void |
registerConfigBean(String domain) |
protected abstract S |
removeRepo(String domain)
Method called to remove repo instance for domain
|
protected abstract void |
setDefault(S repo)
Method called to set default repo instance.
|
void |
unregister(Kernel kernel)
Method called while bean is being unregistered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultBeanClass
public static final String REPO_URI
public static final String REPO_CLASS
public static final String POOL_CLASS
public static final String POOL_SIZE
public String getName()
public void register(Kernel kernel)
RegistrarBean
register
in interface RegistrarBean
kernel
- - instance from local scopepublic void unregister(Kernel kernel)
RegistrarBean
unregister
in interface RegistrarBean
kernel
- - instance from local scopepublic String getDefaultAlias()
protected void registerConfigBean(String domain)
protected abstract Class<? extends T> getConfigClass()
protected abstract void addRepo(String domain, S repo)
domain
- repo
- protected abstract S removeRepo(String domain)
domain
- protected abstract void setDefault(S repo)
repo
- instance of repoCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.