1 /* 2 * Copyright 1999-2002,2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.apache.cocoon.portal.event.aspect; 17 18 import java.util.Map; 19 20 import org.apache.avalon.framework.parameters.Parameters; 21 import org.apache.cocoon.portal.PortalService; 22 import org.apache.cocoon.portal.event.EventConverter; 23 import org.apache.cocoon.portal.event.Publisher; 24 25 /** 26 * 27 * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a> 28 * @author <a HREF="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a> 29 * 30 * @version CVS $Id: EventAspectContext.java 219049 2005-07-14 15:11:52Z cziegeler $ 31 */ 32 public interface EventAspectContext { 33 34 /** 35 * Invoke next aspect 36 */ 37 void invokeNext(PortalService service); 38 39 /** 40 * Get the {@link Parameters} of the aspect. 41 */ 42 Parameters getAspectParameters(); 43 44 /** 45 * Get the encoder 46 */ 47 EventConverter getEventConverter(); 48 49 /** 50 * Get the publisher. 51 * @deprecated The aspect can use the portal service to publish events. 52 */ 53 Publisher getEventPublisher(); 54 55 /** 56 * Get the object model 57 */ 58 Map getObjectModel(); 59 } 60