1 /* 2 * $Id: EntryPointResolver.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 11 package org.mule.api.model; 12 13 import org.mule.api.MuleEventContext; 14 15 /** 16 * <code>EntryPointResolver</code> resolves a method to call on the given 17 * Component when an event is received for the service. 18 * 19 * Note that one instance of an entry point will be created for a component. This means the type of the component will always be 20 * of the same type for the life of the instance. Resolvers must be thread safe since multiple requests on the same component can 21 * happen concurrently. The recommended approach is to use atomic values and concurrent collections where needed rather than 22 * synchronizing the invoke method, which could impact performance 23 */ 24 public interface EntryPointResolver 25 { 26 InvocationResult invoke(Object component, MuleEventContext context) throws Exception; 27 }