C
- @Component public abstract class GlueActivity<C extends GlueContext> extends Object
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
applicationContext |
static String |
FAILURE
error transition name
|
protected org.slf4j.Logger |
logger
logger
|
protected static String |
RESULT_KEY
property : result-key
|
protected static String |
RESULT_KEY_POSTFIX |
static String |
SUCCESS
defalut transition name
|
Constructor and Description |
---|
GlueActivity() |
Modifier and Type | Method and Description |
---|---|
protected String |
checkMethodName(String ref,
Class<?> clazz,
String methodName) |
void |
destroy() |
protected Method |
getMethod(Class<?> clazz,
String methodName,
Class<?>[] paramTypes) |
protected int |
getParamCount(String value) |
protected Class<?> |
getRequiredType(String ref,
String... names) |
protected String |
getResultKey(GlueContext ctx) |
void |
init() |
protected void |
makeMethodParamTypes(GlueContext ctx,
int cnt,
Class<?>[] types,
Object[] args) |
abstract String |
runActivity(C ctx)
abstract method.
|
public static final String SUCCESS
public static final String FAILURE
protected static final String RESULT_KEY
protected static final String RESULT_KEY_POSTFIX
protected org.slf4j.Logger logger
@Autowired protected ApplicationContext applicationContext
@PostConstruct public void init()
@PreDestroy public void destroy()
protected Class<?> getRequiredType(String ref, String... names)
ref
- names
- protected Method getMethod(Class<?> clazz, String methodName, Class<?>[] paramTypes)
clazz
- methodName
- paramTypes
- protected void makeMethodParamTypes(GlueContext ctx, int cnt, Class<?>[] types, Object[] args)
ctx
- cnt
- types
- args
- protected String checkMethodName(String ref, Class<?> clazz, String methodName)
ref
- clazz
- methodName
- protected String getResultKey(GlueContext ctx)
ctx
- protected int getParamCount(String value)
Copyright © 2019 POSCOICT. All rights reserved.