Jan Tabacek

Advisor Class access through Blaze Advisor API

Discussion created by Jan Tabacek on Jan 17, 2011
Latest reply on Jan 19, 2011 by Kishore Prabaharan

I got java code, that connects to the repository, opens a project and finds a directory that contains Advisor Classes. The question is, is it possible to open these classes and get their properties? Is there any way to extract classes from list of directory entries? Or is this whole approach wrong?? I can't find any documentation usefull for solving this problem, so any help is appreciated.

 

here is the code:

 

    private void processProject(NdPromProject project) {
        System.out.println("Creating location "+ OBJECT_MODEL_DIRECTORY);
        NdLocation location = NdLocationFactory.createLocation(

                 OBJECT_MODEL_DIRECTORY, true);
        NdRomDirectory dir;
        try {
            dir = (NdRomDirectory) project.lookupEntry(location);
            NdRomEntry[] entries = dir.getEntries();
            for (NdRomEntry entry : entries) {
                ???
            }
        } catch (NdRomException e) {
            e.printStackTrace();
        }
    }

 

Outcomes