Class ClassLoaderModule
- java.lang.Object
-
- ca.bc.gov.open.cpf.plugin.impl.module.ClassLoaderModule
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DISABLED
static String[]
STANDARD_PARAMETER_NAMES
static Map<String,Class<?>>
STANDARD_PARAMETERS
protected static String
STARTED
protected static String
STARTING
protected static String
STOPPED
protected static String
STOPPING
-
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:
addModuleError
in interfaceModule
-
addModuleError
public void addModuleError(String message, Throwable e)
- Specified by:
addModuleError
in interfaceModule
-
addModuleError
public void addModuleError(Throwable e)
-
clearModuleError
public void clearModuleError()
- Specified by:
clearModuleError
in interfaceModule
-
getBusinessApplication
public BusinessApplication getBusinessApplication(String businessApplicationName)
- Specified by:
getBusinessApplication
in interfaceModule
-
getBusinessApplicationNames
public List<String> getBusinessApplicationNames()
- Specified by:
getBusinessApplicationNames
in interfaceModule
-
getBusinessApplicationPlugin
public Object getBusinessApplicationPlugin(BusinessApplication application, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPlugin
in interfaceModule
-
getBusinessApplicationPlugin
public Object getBusinessApplicationPlugin(String businessApplicationName, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPlugin
in interfaceModule
-
getBusinessApplicationPluginAdaptor
public PluginAdaptor getBusinessApplicationPluginAdaptor(BusinessApplication application, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPluginAdaptor
in interfaceModule
-
getBusinessApplicationPluginAdaptor
public PluginAdaptor getBusinessApplicationPluginAdaptor(String businessApplicationName, String executionId, String logLevel)
- Specified by:
getBusinessApplicationPluginAdaptor
in interfaceModule
-
getBusinessApplicationRegistry
public BusinessApplicationRegistry getBusinessApplicationRegistry()
-
getBusinessApplications
public List<BusinessApplication> getBusinessApplications()
- Specified by:
getBusinessApplications
in interfaceModule
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfaceModule
-
getConfigPropertyLoader
public ConfigPropertyLoader getConfigPropertyLoader()
-
getConfigUrl
public URL getConfigUrl()
- Specified by:
getConfigUrl
in interfaceModule
-
getJarCount
public int getJarCount()
- Specified by:
getJarCount
in interfaceModule
-
getJarUrls
public List<URL> getJarUrls()
- Specified by:
getJarUrls
in interfaceModule
-
getLastStartTime
public long getLastStartTime()
- Specified by:
getLastStartTime
in interfaceModule
-
getLog
public AppLog getLog()
-
getModuleDescriptor
public String getModuleDescriptor()
- Specified by:
getModuleDescriptor
in interfaceModule
-
getModuleError
public String getModuleError()
- Specified by:
getModuleError
in interfaceModule
-
getModuleType
public String getModuleType()
- Specified by:
getModuleType
in interfaceModule
-
getPermissionsByGroupName
public Map<String,Set<ResourcePermission>> getPermissionsByGroupName()
- Specified by:
getPermissionsByGroupName
in interfaceModule
-
getStartedDate
public Date getStartedDate()
- Specified by:
getStartedDate
in interfaceModule
-
getStartedTime
public long getStartedTime()
- Specified by:
getStartedTime
in interfaceModule
-
getStatus
public String getStatus()
-
hasBusinessApplication
public boolean hasBusinessApplication(String businessApplicationName)
- Specified by:
hasBusinessApplication
in interfaceModule
-
isApplicationsLoaded
public boolean isApplicationsLoaded()
- Specified by:
isApplicationsLoaded
in interfaceModule
-
isGroupNameValid
public boolean isGroupNameValid(String groupName)
-
isHasError
public boolean isHasError()
-
isInitialized
public boolean isInitialized()
-
isRelaodable
public boolean isRelaodable()
- Specified by:
isRelaodable
in interfaceModule
-
isRemoteable
public boolean isRemoteable()
- Specified by:
isRemoteable
in interfaceModule
-
loadApplications
public void loadApplications()
- Specified by:
loadApplications
in 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()
-
-