Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
NoArgumentsEntryPointResolver |
|
| 0.0;0 |
1 | /* | |
2 | * $Id: NoArgumentsEntryPointResolver.java 19191 2010-08-25 21:05:23Z tcarlson $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | package org.mule.model.resolvers; | |
11 | ||
12 | import org.mule.api.MuleEventContext; | |
13 | import org.mule.api.transformer.TransformerException; | |
14 | import org.mule.util.ClassUtils; | |
15 | ||
16 | /** | |
17 | * Allows for arguments with no parameters to be called. Regardless of the payload of the current | |
18 | * event, this resolver will always only look for No-Arg servic methods. | |
19 | * <p/> | |
20 | * Note that the {@link org.mule.model.resolvers.ReflectionEntryPointResolver} supports the resolution | |
21 | * of no-arg service methods if the event payload received is of type {@link org.mule.transport.NullPayload}. | |
22 | * | |
23 | * @see org.mule.model.resolvers.ReflectionEntryPointResolver | |
24 | * @see org.mule.transport.NullPayload | |
25 | */ | |
26 | 0 | public class NoArgumentsEntryPointResolver extends AbstractArgumentEntryPointResolver |
27 | { | |
28 | @Override | |
29 | protected Class<?>[] getMethodArgumentTypes(Object[] payload) | |
30 | { | |
31 | 0 | return ClassUtils.NO_ARGS_TYPE; |
32 | } | |
33 | ||
34 | @Override | |
35 | protected Object[] getPayloadFromMessage(MuleEventContext context) throws TransformerException | |
36 | { | |
37 | 0 | return ClassUtils.NO_ARGS; |
38 | } | |
39 | } |