Search in sources :

Example 6 with Manager

use of org.tron.core.db.Manager in project java-tron by tronprotocol.

the class ApplicationImpl method init.

@Override
@Autowired
public void init(Args args) {
    // p2pNode = new NodeImpl();
    // p2pNode = ctx.getBean(NodeImpl.class);
    dbManager = new Manager();
    dbManager.init();
    blockStoreDb = dbManager.getBlockStore();
    services = new ServiceContainer();
    nodeDelegate = new NodeDelegateImpl(dbManager);
}
Also used : Manager(org.tron.core.db.Manager) NodeDelegateImpl(org.tron.core.net.node.NodeDelegateImpl) Autowired(org.springframework.beans.factory.annotation.Autowired)

Aggregations

Manager (org.tron.core.db.Manager)6 BeforeClass (org.junit.BeforeClass)5 Autowired (org.springframework.beans.factory.annotation.Autowired)1 NodeDelegateImpl (org.tron.core.net.node.NodeDelegateImpl)1