|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.util.component.ApiMethodImpl
public final class ApiMethodImpl
Delegate class for ApiMethod.
This class is instantiated by Enumerations for Api Proxy types.
For example:
public enum HelloWorldMethod implements ApiMethod {
SAYHI(String.class, "sayHi", "name", String.class);
private ApiMethodImpl apiMethod;
private HelloWorldMethods(Class<?> resultType, String name, Object... args) throws IllegalArgumentException {
this.apiMethod = new ApiMethod(HelloWorld.class, resultType, name, args);
}
// implement ApiMethod interface
String getName() { return apiMethod.getName(); }
Class<?> getResultType() {return apiMethod.getResultType(); }
List<String> getArgNames() { return apiMethod.getArgNames(); }
List<Class<?>> getArgTypes() {return apiMethod.getArgTypes(); }
Method getMethod() { return apiMethod.getMethod(); }
}
| Constructor Summary | |
|---|---|
ApiMethodImpl(Class<?> proxyType,
Class<?> resultType,
String name,
Object... args)
|
|
| Method Summary | |
|---|---|
List<String> |
getArgNames()
Returns method argument names. |
List<Class<?>> |
getArgTypes()
Return method argument types. |
Method |
getMethod()
Returns Method in proxy type. |
String |
getName()
Returns method name. |
Class<?> |
getResultType()
Returns method result type. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApiMethodImpl(Class<?> proxyType,
Class<?> resultType,
String name,
Object... args)
throws IllegalArgumentException
IllegalArgumentException| Method Detail |
|---|
public String getName()
ApiMethod
getName in interface ApiMethodpublic Class<?> getResultType()
ApiMethod
getResultType in interface ApiMethodpublic List<String> getArgNames()
ApiMethod
getArgNames in interface ApiMethodpublic List<Class<?>> getArgTypes()
ApiMethod
getArgTypes in interface ApiMethodpublic Method getMethod()
ApiMethodMethod in proxy type.
getMethod in interface ApiMethodpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||