Skip to content
This repository was archived by the owner on May 9, 2019. It is now read-only.

Common Framework: Starting out

Ari Kamen edited this page Sep 2, 2015 · 18 revisions

Configuration Manager

Create a configuration manager and specify the application type. Configuration manager should be extended per utility.

APPLICATION appType = APPLICATION.PROTEX; ConfigurationManager cf = new ConfigurationManager(configFileLocation, appType);

Create a Protex Server Wrapper (same applies for Code Center) with the configuration manager.

boolean useAuth = true; ProtexServerWrapper psw = new ProtexServerWrapper(cf.getServerBean(), cf , useAuth );

The server bean contains the connectivity information specified in the configuration file.

Use the server wrapper to perform tasks against Protex For example: Get a project

ProjectPojo protexProject = psw.getProjectByName("MyProtexProject");

The server wrapper provides direct access to all the individual APIs allowing you to perform project, identification, codematching, etc tasks against Protex or Code Center.

Clone this wiki locally