C
- as Config type objectT
- as Tenant type, Example: Organization
U
- as SAASUser
for O typepublic abstract class FindConfigForTenant<C,T,U extends SAASUser<T>> extends Object implements Supplier<C>, org.apache.commons.collections.Transformer, ContextConsumer<UserShell<U,?>>
Constructor and Description |
---|
FindConfigForTenant() |
FindConfigForTenant(String settingNameSpace) |
Modifier and Type | Method and Description |
---|---|
C |
get() |
C |
getDefaults()
Default bean for the configs/settings, if nothing else is found it will default to this.
|
String |
getNameSpace()
Search for Spring bean by the name; prefix tenant/org OR sub-tenant/org name before the namespace name, delimited by a .
|
protected abstract String |
getTenantName(T tenant)
System wide unique name per tenant
|
void |
setDefaults(C defaults)
Default bean for the configs/settings, if nothing else is found it will default to this.
|
void |
setNameSpace(String nameSpace)
Search for Spring bean by the name; prefix tenant/org OR sub-tenant/org name before the namespace name, delimited by a .
|
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deriveContext
public FindConfigForTenant()
public FindConfigForTenant(String settingNameSpace)
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public String getNameSpace()
public void setNameSpace(String nameSpace)
public C getDefaults()
public void setDefaults(C defaults)
Copyright © 2018. All rights reserved.