blob: 2706ffd26e60eb8be73f34a0f7292952b286fe1b [file] [log] [blame]
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.myrmidon.components.aspect;
import org.apache.avalon.framework.component.Component;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.parameters.Parameters;
import org.apache.myrmidon.api.TaskException;
import org.apache.myrmidon.aspects.AspectHandler;
/**
* Manage and propogate Aspects.
*
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
*/
public interface AspectManager
extends Component, AspectHandler
{
String ROLE = "org.apache.myrmidon.components.aspect.AspectManager";
String[] getNames();
void dispatchAspectSettings( String name, Parameters parameters, Configuration[] elements )
throws TaskException;
void addAspectHandler( String name, AspectHandler handler )
throws TaskException;
void removeAspectHandler( String name, AspectHandler handler )
throws TaskException;
}