Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ protected String getClassImpl() {
* class: com.example.MyInterceptor
* scope: SINGLETON
* constructorArgs:
* - constructorArg:
* value: foo
* - value: foo
* properties:
* - property:
* name: bar
* value: baz
* - name: bar
* value: baz
*/
@MCElement(name = "bean")
public class Bean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ protected String getClassImpl() {

import java.util.Map;

/**
* @description Defines reusable, named components that can be referenced from other sections (e.g., via <code>$ref</code>).
* @yaml <pre><code>
* components:
* demoComponent: # id for the component
* log: {} # referenceable plugin
* ---
* api:
* port: 2000
* flow:
* - $ref: '#/components/demoComponent' # references the demo component
* </code></pre>
* @topic 1. Proxies and Flow
*/
@MCElement(name = "components", topLevel = true, component=false)
public class Components {

Expand Down
2 changes: 1 addition & 1 deletion distribution/examples/configuration/apis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ global:
components:

demoComponent: # id for the component
log: {} # referencable plugin
log: {} # referenceable plugin

jmx: # id for the bean
bean:
Expand Down
Loading