public abstract class EzyAbstractSetting extends Object implements EzyBaseSetting, EzyZoneIdAware, EzyHomePathAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
configFile |
protected String |
entryLoader |
protected Object[] |
entryLoaderArgs |
protected String |
folder |
protected String |
homePath |
protected int |
id |
protected String |
name |
protected int |
threadPoolSize |
protected int |
zoneId |
| Constructor and Description |
|---|
EzyAbstractSetting() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getConfigFile()
return the full path configuration file which you input
|
String |
getConfigFile(boolean noParent)
return the path of configuration file which you input
if noParent is true see
getConfigFileInput function
if noParent is false see getConfigFile function |
String |
getConfigFileInput()
return the input configuration file which you input
let's say you setup the configuration file is config.properties
so this function will return config.properties
|
String |
getFolder() |
protected abstract AtomicInteger |
getIdCounter() |
String |
getLocation() |
protected abstract String |
getParentFolder() |
int |
hashCode() |
protected int |
newId() |
void |
setEntryLoader(Class<?> loaderClass) |
void |
setEntryLoader(String loaderClass) |
void |
setEntryLoaderArgs(Object[] args) |
Map<Object,Object> |
toMap() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntryLoader, getEntryLoaderArgs, getId, getName, getThreadPoolSize, getZoneIdsetZoneIdsetHomePathprotected final int id
protected String name
protected String folder
protected int zoneId
protected String entryLoader
protected int threadPoolSize
protected String configFile
protected String homePath
protected Object[] entryLoaderArgs
protected int newId()
public void setEntryLoader(Class<?> loaderClass)
public void setEntryLoader(String loaderClass)
public void setEntryLoaderArgs(Object[] args)
public String getFolder()
getFolder in interface EzyBaseSettingpublic String getLocation()
getLocation in interface EzyBaseSettingpublic String getConfigFile()
EzyBaseSettinggetConfigFile in interface EzyBaseSettingpublic String getConfigFileInput()
EzyBaseSettinggetConfigFileInput in interface EzyBaseSettingpublic String getConfigFile(boolean noParent)
EzyBaseSettinggetConfigFileInput function
if noParent is false see getConfigFile functiongetConfigFile in interface EzyBaseSettingnoParent - include parent path or notprotected abstract String getParentFolder()
protected abstract AtomicInteger getIdCounter()
Copyright © 2021 Young Monkeys. All rights reserved.