Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename ExtensionRegistry to ExtensionPointRegistry
Issue: #112
- Loading branch information
Showing
8 changed files
with
66 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
junit5-api/src/main/java/org/junit/gen5/api/extension/ExtensionPointRegistry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright 2015-2016 the original author or authors. | ||
* | ||
* All rights reserved. This program and the accompanying materials are | ||
* made available under the terms of the Eclipse Public License v1.0 which | ||
* accompanies this distribution and is available at | ||
* | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.junit.gen5.api.extension; | ||
|
||
import org.junit.gen5.api.extension.ExtensionPoint.Position; | ||
|
||
/** | ||
* A registry for {@link ExtensionPoint} implementations which can be | ||
* populated via an {@link ExtensionRegistrar}. | ||
* | ||
* @since 5.0 | ||
* @see ExtensionPoint | ||
* @see ExtensionRegistrar | ||
*/ | ||
public interface ExtensionPointRegistry { | ||
|
||
/** | ||
* Register an {@link ExtensionPoint} of the specified type using the | ||
* {@linkplain Position#DEFAULT default position}. | ||
* | ||
* @param extensionPoint the extension point to register | ||
* @param extensionPointType the type of extension point to register | ||
* @see #register(ExtensionPoint, Class, Position) | ||
*/ | ||
default <E extends ExtensionPoint> void register(E extensionPoint, Class<E> extensionPointType) { | ||
register(extensionPoint, extensionPointType, Position.DEFAULT); | ||
} | ||
|
||
/** | ||
* Register an {@link ExtensionPoint} of the specified type using the | ||
* supplied {@link Position}. | ||
* | ||
* @param extensionPoint the extension point to register | ||
* @param extensionPointType the type of extension point to register | ||
* @param position the position in which the extension point | ||
* should be registered | ||
* @see #register(ExtensionPoint, Class) | ||
*/ | ||
<E extends ExtensionPoint> void register(E extensionPoint, Class<E> extensionPointType, Position position); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
junit5-api/src/main/java/org/junit/gen5/api/extension/ExtensionRegistry.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters