Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.makelangelo.donatelloimpl;
import com.marginallyclever.makelangelo.donatelloimpl.nodes.TurtleDAO4JSON;
import com.marginallyclever.makelangelo.turtle.Turtle;
import com.marginallyclever.nodegraphcore.DAO4JSONFactory;
import com.marginallyclever.nodegraphcore.DAORegistry;
import com.marginallyclever.nodegraphcore.NodeFactory;
import com.marginallyclever.nodegraphcore.NodeRegistry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Register custom {@link com.marginallyclever.nodegraphcore.Node}s for {@link Turtle}s in the {@link NodeFactory}.
* Register the types with the JSON DAO factory.
* @author Dan Royer
* @since 2022-02-01
*/
public class MakelangeloRegistry implements DAORegistry, NodeRegistry {
private static final Logger logger = LoggerFactory.getLogger(MakelangeloRegistry.class);
public String getName() {
return "Makelangelo";
}
@Override
public void registerNodes() {
logger.info("Registering makelangelo-software nodes");
NodeFactory.registerAllNodesInPackage("com.marginallyclever.makelangelo.donatelloimpl");
}
@Override
public void registerDAO() {
logger.info("Registering makelangelo-software DAOs");
DAO4JSONFactory.registerDAO(Turtle.class,new TurtleDAO4JSON());
}
}
9e679da90This file is pinned to the selected release. Download the original to open it in your design tool.