1 /*
2  * Copyright (c) 2017 Helmut Neemann
3  * Use of this source code is governed by the GPL v3 license
4  * that can be found in the LICENSE file.
5  */
6 package de.neemann.digital.draw.library;
7 
8 /**
9  * User has to implement a component source
10  */
11 public interface ComponentSource {
12 
13     /**
14      * User has to implement this interface in order to add components to Digital
15      *
16      * @param adder the ComponentManager
17      * @throws InvalidNodeException thrown if node is invalid
18      */
registerComponents(ComponentManager adder)19     void registerComponents(ComponentManager adder) throws InvalidNodeException;
20 }
21