public class AppUtil extends Application
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
callService(String serviceName,
String methodName,
Object[] methodParams) |
MockRequest |
createDemoRequest() |
static MethodMetaArgs |
createDirectMethod(String methodName,
Object[] methodParams) |
Object |
getComponentInstance(String name) |
ContainerWrapper |
getContainer() |
String |
getContainerKey() |
String |
getInterceptorKey() |
Object |
getService(String name) |
Object |
getService(TargetMetaDef targetMetaDef) |
void |
stop() |
clear, getAttribute, getInitParameter, getResourceAsStream, removeAttribute, setAttributepublic AppUtil(String fileName)
public AppUtil()
public void stop()
public MockRequest createDemoRequest()
public Object getService(TargetMetaDef targetMetaDef)
public Object callService(String serviceName, String methodName, Object[] methodParams) throws Exception
Exceptionpublic String getContainerKey()
public String getInterceptorKey()
public ContainerWrapper getContainer() throws Exception
Exceptionpublic static MethodMetaArgs createDirectMethod(String methodName, Object[] methodParams)
Copyright © 2018. All rights reserved.