blob: 946514023ba630ff12de9f38825d2e9bb8a5ee02 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.runtime.common.types;
// TODO: Auto-generated Javadoc
/**
* This service is responsible to load classes which are visible for the domain.
* For instance jpa entities, dtos,...
* <p>
* Different concepts may be used. The default way to provide an implementation
* is the use of the BundleSpace. A bundleSpace is a selected quantity of
* bundles, that expose their classes. Bundles with the bundle header
* <code>"OSBP-RuntimeBuilder-BundleSpace"</code> will be automatically added
* using the extender pattern. The default implementation of this service will
* use the bundle space and tries to load classes by the registered bundles.
*/
public interface ITypeProviderService {
/**
* Returns the class for the given qualified name and type. For emf pass the
* EClass as clazz.
*
* @param clazz
* the clazz
* @param qualifiedName
* the qualified name
* @return the class
*/
Class<?> forName(Object clazz, String qualifiedName);
}