1 package org.objectweb.util.explorer.context.api; 2 3 import org.objectweb.util.explorer.api.Context; 4 import org.objectweb.util.explorer.core.common.api.ContextContainer; 5 6 /** 7 * 8 * 9 * @author <a HREF="mailto:Jerome.Moroy@lifl.fr">Jérôme Moroy</a>, 10 * <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>. 11 * 12 * @version 0.1 13 */ 14 public interface ContextContainerFactory { 15 16 /** The name of the Fractal interface. */ 17 public static final String CONTEXT_CONTAINER_FACTORY = "context-container-factory"; 18 19 /** 20 * Creates a new instance of <code>ContextContainer</code>. 21 * If some decoders are defined, it adds them as interceptors. 22 * @return A new instance of context container. 23 */ 24 public ContextContainer create(); 25 26 /** 27 * Wraps the given <code>ContextContainer</code> instance 28 * with some interceptors if decoders are defined. 29 * @param context The contextContainer on which interceptors may be added. 30 * @return An instance of context container. 31 */ 32 public ContextContainer create(ContextContainer context); 33 34 /** 35 * Wraps the given <code>Context</code> instance 36 * with some interceptors if decoders are defined. 37 * @param context The context on which interceptors may be added. 38 * @return An instance of context. 39 */ 40 public Context create(Context context); 41 42 } 43