01: /*
02: * $Id: LegacyEntryPointResolverSet.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10: package org.mule.model.resolvers;
11:
12: /**
13: * An {@link org.mule.api.model.EntryPointResolverSet} that mimics the behaviour of the Mule 1.x
14: * DynamicEntryPointResolver.
15: */
16: public class LegacyEntryPointResolverSet extends
17: DefaultEntryPointResolverSet {
18: public LegacyEntryPointResolverSet() {
19: addEntryPointResolver(new MethodHeaderPropertyEntryPointResolver());
20: addEntryPointResolver(new CallableEntryPointResolver());
21:
22: ReflectionEntryPointResolver preTransformResolver = new ReflectionEntryPointResolver();
23: //In Mule 1.x you could call setXX methods as service methods by default
24: preTransformResolver.removeIgnoredMethod("set*");
25: addEntryPointResolver(preTransformResolver);
26:
27: ReflectionEntryPointResolver postTransformResolver = new ReflectionEntryPointResolver();
28: postTransformResolver.setTransformFirst(false);
29: //In Mule 1.x you could call setXX methods as service methods by default
30: postTransformResolver.removeIgnoredMethod("set*");
31: addEntryPointResolver(postTransformResolver);
32: }
33: }
|