-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address most review comments from Tomas
- Loading branch information
Showing
86 changed files
with
1,655 additions
and
1,065 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# pico-builder | ||
|
||
This module can either be used compile-time only or at runtime as well depending upon your usage. | ||
|
||
See the [main](../README.md) document for details. |
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
47 changes: 47 additions & 0 deletions
47
pico/builder/builder/src/main/java/io/helidon/pico/builder/AttributeVisitor.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,47 @@ | ||
/* | ||
* Copyright (c) 2022 Oracle and/or its affiliates. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.helidon.pico.builder; | ||
|
||
import java.util.Map; | ||
import java.util.function.Supplier; | ||
|
||
/** | ||
* A functional interface that can be used to visit all attributes of this type. | ||
* <p> | ||
* This type is used when {@link io.helidon.pico.builder.Builder#requireLibraryDependencies()} is used. | ||
*/ | ||
@FunctionalInterface | ||
public interface AttributeVisitor { | ||
|
||
/** | ||
* Visits the attribute named 'attrName'. | ||
* | ||
* @param attrName the attribute name | ||
* @param valueSupplier the attribute value supplier | ||
* @param meta the meta information for the attribute | ||
* @param userDefinedCtx a user defined context that can be used for holding an object of your choosing | ||
* @param type the type of the attribute | ||
* @param typeArgument the type arguments (if type is a parameterized / generic type) | ||
*/ | ||
void visit(String attrName, | ||
Supplier<Object> valueSupplier, | ||
Map<String, Object> meta, | ||
Object userDefinedCtx, | ||
Class<?> type, | ||
Class<?>... typeArgument); | ||
|
||
} |
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
Oops, something went wrong.