Package com.alipay.sofa.ark.spi.model
Interface Biz
- All Superinterfaces:
BizInfo,PriorityOrdered
Ark Biz Model Interface
- Since:
- 0.1.0
- Author:
- ruoshan
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.alipay.sofa.ark.spi.model.BizInfo
BizInfo.BizStateRecord, BizInfo.StateChangeReason -
Field Summary
Fields inherited from interface com.alipay.sofa.ark.spi.service.PriorityOrdered
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDeclared(URL url, String resourceName) check resource whether declared in this biz classLoader.booleancheck whether this biz is declared mode.voidsetCustomBizName(String bizName) allow to dynamic update biz namevoidstart Bizvoidstart Biz with args and envsvoidstop()stop BizMethods inherited from interface com.alipay.sofa.ark.spi.model.BizInfo
getAttributes, getBizClassLoader, getBizName, getBizState, getBizStateRecords, getBizUrl, getBizVersion, getClassPath, getDenyImportClasses, getDenyImportPackageNodes, getDenyImportPackages, getDenyImportPackageStems, getDenyImportResources, getDenyPrefixImportResourceStems, getDenySuffixImportResourceStems, getIdentity, getMainClass, getWebContextPathMethods inherited from interface com.alipay.sofa.ark.spi.service.PriorityOrdered
getPriority
-
Method Details
-
start
start Biz- Parameters:
args-- Throws:
Throwable
-
start
start Biz with args and envs- Parameters:
args-envs-- Throws:
Throwable
-
stop
stop Biz- Throws:
Throwable
-
isDeclared
check resource whether declared in this biz classLoader.- Parameters:
url-
-
isDeclaredMode
boolean isDeclaredMode()check whether this biz is declared mode. declared mode means this biz can only delegate declared class and resources in the pom of this biz to other classloader like plugin or master Biz.- Returns:
-
setCustomBizName
allow to dynamic update biz name- Parameters:
bizName-
-