Skip to content

Commit

Permalink
Define interface methods before static methods (for clarity).
Browse files Browse the repository at this point in the history
  • Loading branch information
pferraro committed Dec 20, 2023
1 parent b40be4c commit c365c97
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
*/
public interface ResourceServiceInstaller {

/**
* Installs a service into the target associated with the specified operation context.
* @param context an operation context
* @return a mechanism to remove the installed service
*/
Consumer<OperationContext> install(OperationContext context);

/**
* Returns a composite {@link ResourceServiceInstaller} that installs the specified installers.
* @param installers a variable number of installers
Expand Down Expand Up @@ -50,11 +57,4 @@ public void accept(OperationContext context) {
}
};
}

/**
* Installs a service into the target associated with the specified operation context.
* @param context an operation context
* @return a mechanism to remove the installed service
*/
Consumer<OperationContext> install(OperationContext context);
}

0 comments on commit c365c97

Please sign in to comment.