You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2002/05/06 12:38:02 UTC
cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/service ServiceRegistry.java
donaldp 02/05/06 03:38:02
Added: container/src/java/org/apache/myrmidon/interfaces/service
ServiceRegistry.java
Log:
Start adding in ServiceRegistry
Revision Changes Path
1.1 jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/service/ServiceRegistry.java
Index: ServiceRegistry.java
===================================================================
/*
* 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.txt file.
*/
package org.apache.myrmidon.interfaces.service;
import org.apache.avalon.framework.service.ServiceException;
/**
* The interface for registering Services in the current frame.
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/05/06 10:38:02 $
*/
public interface ServiceRegistry
{
/** Role name for this interface. */
String ROLE = ServiceRegistry.class.getName();
/**
* Register a service in runtime.
*
* @param roleName the role under which to register service
* @param service the actual service to register
* @throws ServiceException if error registering service
*/
void registerService( String roleName, Object service )
throws ServiceException;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>