Package org.openengsb.core.ekb.api

Examples of org.openengsb.core.ekb.api.ModelRegistry


        views.add(new XLinkConnectorView(viewId2, toolName, descriptions));
        modelsToViews.put(new ModelDescription(exampleModelClass.getName(), exampleModelClassVersion),
                views.toArray(new XLinkConnectorView[0]));
   
        serviceFinder = mock(OsgiUtilsService.class);
        ModelRegistry registry = mock(ModelRegistry.class);
        when(serviceFinder.getService(ModelRegistry.class)).thenReturn(registry);
       
        when(registry.loadModel(isA(ModelDescription.class))).thenReturn(exampleModelClass);
       
    }
View Full Code Here


    @Before
    public void setup() {
        EngineeringDatabaseService edbService = new TestEngineeringDatabaseService();
        EDBConverter edbConverter = new EDBConverter(edbService);
        TransformationEngine transformationEngine = new TestTransformationEngine();
        ModelRegistry modelRegistry = new TestModelRegistry();
        enhancer = new EngineeringObjectEnhancer(edbService, edbConverter,
            transformationEngine, modelRegistry, mode.toString());
        ContextHolder.get().setCurrentContextId(CONTEXT_ID);
    }   
View Full Code Here

     * Throws a ClassNotFoundException if the Class/Version pair is not found.
     */
    public static Class getClassOfOpenEngSBModel(String clazz,
            String version,
            OsgiUtilsService serviceFinder) throws ClassNotFoundException {
        ModelRegistry registry = serviceFinder.getService(ModelRegistry.class);
        ModelDescription modelDescription = new ModelDescription(clazz, version);
        Class clazzObject = registry.loadModel(modelDescription);  
        return clazzObject;
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.ekb.api.ModelRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.