Class ClassLoaderModule
- java.lang.Object
-
- ca.bc.gov.open.cpf.plugin.impl.module.ClassLoaderModule
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDISABLEDstatic String[]STANDARD_PARAMETER_NAMESstatic Map<String,Class<?>>STANDARD_PARAMETERSprotected static StringSTARTEDprotected static StringSTARTINGprotected static StringSTOPPEDprotected static StringSTOPPING-
Fields inherited from interface ca.bc.gov.open.cpf.plugin.impl.module.Module
RESERVED_MODULE_NAMES
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderModule(BusinessApplicationRegistry businessApplicationRegistry, String moduleName, ClassLoader classLoader, ConfigPropertyLoader configPropertyLoader, URL configUrl, String logLevel)ClassLoaderModule(BusinessApplicationRegistry businessApplicationRegistry, String moduleName, String logLevel)
-
Method Summary
-
-
-
Field Detail
-
STOPPING
protected static final String STOPPING
- See Also:
- Constant Field Values
-
STARTING
protected static final String STARTING
- See Also:
- Constant Field Values
-
STARTED
protected static final String STARTED
- See Also:
- Constant Field Values
-
STANDARD_PARAMETER_NAMES
public static final String[] STANDARD_PARAMETER_NAMES
-
STOPPED
protected static final String STOPPED
- See Also:
- Constant Field Values
-
DISABLED
protected static final String DISABLED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClassLoaderModule
public ClassLoaderModule(BusinessApplicationRegistry businessApplicationRegistry, String moduleName, ClassLoader classLoader, ConfigPropertyLoader configPropertyLoader, URL configUrl, String logLevel)
-
ClassLoaderModule
public ClassLoaderModule(BusinessApplicationRegistry businessApplicationRegistry, String moduleName, String logLevel)
-
-
Method Detail
-
addAppender
public static void addAppender(ch.qos.logback.classic.Logger logger, String baseFileName, String name)
-
addModuleError
public void addModuleError(String message)
- Specified by:
addModuleErrorin interfaceModule
-
addModuleError
public void addModuleError(String message, Throwable e)
- Specified by:
addModuleErrorin interfaceModule
-
addModuleError
public void addModuleError(Throwable e)
-
clearModuleError
public void clearModuleError()
- Specified by:
clearModuleErrorin interfaceModule
-
getBusinessApplication
public BusinessApplication getBusinessApplication(String businessApplicationName)
- Specified by:
getBusinessApplicationin interfaceModule
-
getBusinessApplicationNames
public List<String> getBusinessApplicationNames()
- Specified by:
getBusinessApplicationNamesin interfaceModule
-
getBusinessApplicationPlugin
public Object getBusinessApplicationPlugin(BusinessApplication application, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPluginin interfaceModule
-
getBusinessApplicationPlugin
public Object getBusinessApplicationPlugin(String businessApplicationName, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPluginin interfaceModule
-
getBusinessApplicationPluginAdaptor
public PluginAdaptor getBusinessApplicationPluginAdaptor(BusinessApplication application, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPluginAdaptorin interfaceModule
-
getBusinessApplicationPluginAdaptor
public PluginAdaptor getBusinessApplicationPluginAdaptor(String businessApplicationName, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPluginAdaptorin interfaceModule
-
getBusinessApplicationRegistry
public BusinessApplicationRegistry getBusinessApplicationRegistry()
-
getBusinessApplications
public List<BusinessApplication> getBusinessApplications()
- Specified by:
getBusinessApplicationsin interfaceModule
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceModule
-
getConfigPropertyLoader
public ConfigPropertyLoader getConfigPropertyLoader()
-
getConfigUrl
public URL getConfigUrl()
- Specified by:
getConfigUrlin interfaceModule
-
getJarCount
public int getJarCount()
- Specified by:
getJarCountin interfaceModule
-
getJarUrls
public List<URL> getJarUrls()
- Specified by:
getJarUrlsin interfaceModule
-
getLastStartTime
public long getLastStartTime()
- Specified by:
getLastStartTimein interfaceModule
-
getLog
public AppLog getLog()
-
getModuleDescriptor
public String getModuleDescriptor()
- Specified by:
getModuleDescriptorin interfaceModule
-
getModuleError
public String getModuleError()
- Specified by:
getModuleErrorin interfaceModule
-
getModuleType
public String getModuleType()
- Specified by:
getModuleTypein interfaceModule
-
getPermissionsByGroupName
public Map<String,Set<ResourcePermission>> getPermissionsByGroupName()
- Specified by:
getPermissionsByGroupNamein interfaceModule
-
getStartedDate
public Date getStartedDate()
- Specified by:
getStartedDatein interfaceModule
-
getStartedTime
public long getStartedTime()
- Specified by:
getStartedTimein interfaceModule
-
getStatus
public String getStatus()
-
hasBusinessApplication
public boolean hasBusinessApplication(String businessApplicationName)
- Specified by:
hasBusinessApplicationin interfaceModule
-
isApplicationsLoaded
public boolean isApplicationsLoaded()
- Specified by:
isApplicationsLoadedin interfaceModule
-
isGroupNameValid
public boolean isGroupNameValid(String groupName)
-
isHasError
public boolean isHasError()
-
isInitialized
public boolean isInitialized()
-
isRelaodable
public boolean isRelaodable()
- Specified by:
isRelaodablein interfaceModule
-
isRemoteable
public boolean isRemoteable()
- Specified by:
isRemoteablein interfaceModule
-
loadApplications
public void loadApplications()
- Specified by:
loadApplicationsin interfaceModule
-
preLoadApplications
protected void preLoadApplications()
-
restartDo
public void restartDo()
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
-
setConfigPropertyLoader
public void setConfigPropertyLoader(ConfigPropertyLoader configPropertyLoader)
-
setConfigUrl
protected void setConfigUrl(URL configUrl)
-
setRemoteable
protected void setRemoteable(boolean remoteable)
-
setStartedDate
public void setStartedDate(Date date)
-
setStatus
public void setStatus(String status)
-
startDo
public void startDo()
-
stopDo
public void stopDo()
-
-