|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.m2m.atl.core.service.CoreService
public final class CoreService
The CoreService utility class provides a way to use extension points in order to retrieve the needed extensions:
For each extension class type, a method returns the list of all detected extensions names.
| Method Summary | |
|---|---|
static ModelFactory |
createModelFactory(java.lang.String name)
Deprecated. Use getModelFactory(String) instead. |
static java.lang.String |
getCompatibleLauncherName(java.lang.String name)
Converts the old Regular-VM name. |
static IExtractor |
getExtractor(java.lang.String name)
Returns the extractors matching the given name. |
static java.lang.String[] |
getExtractorsNames()
Returns the available extractors names. |
static IInjector |
getInjector(java.lang.String name)
Returns the injector matching the given name. |
static java.lang.String[] |
getInjectorsNames()
Returns the available injectors names. |
static ILauncher |
getLauncher(java.lang.String name)
Returns the launcher matching the given name. |
static java.util.Map<java.lang.String,java.lang.String> |
getLauncherOptions(java.lang.String launcherName)
Returns the options Map (id, description) for the given launcher. |
static java.util.Map<java.lang.String,java.lang.String> |
getLauncherOptions(java.lang.String launcherName,
java.lang.String mode)
Returns the options Map (id, description) for the given launcher, in the given mode. |
static java.lang.String[] |
getLaunchersNames()
Returns the available launchers names. |
static java.lang.String[] |
getLaunchersNames(java.lang.String mode)
Returns the available launchers names. |
static java.lang.String[] |
getModelFactoriesNames()
Returns the available model factories names. |
static ModelFactory |
getModelFactory(java.lang.String name)
Creates a new ModelFactory with the given name. |
static boolean |
isEclipseRunning()
Tests if eclipse is running. |
static void |
registerExtractor(java.lang.String extractorName,
java.lang.Class<? extends IExtractor> extractorClass)
Registers an extractor in the extractorRegistry. |
static void |
registerExtractor(java.lang.String name,
IExtractor extractor)
Deprecated. Use registerExtractor(String, Class) instead. |
static void |
registerFactory(java.lang.String name,
java.lang.Class<? extends ModelFactory> factoryClass)
Registers a factory in the factoryRegistry. |
static void |
registerInjector(java.lang.String injectorName,
java.lang.Class<? extends IInjector> injectorClass)
Registers an injector in the injectorRegistry. |
static void |
registerInjector(java.lang.String name,
IInjector injector)
Deprecated. Use registerInjector(String, Class) instead. |
static void |
registerLauncher(ILauncher launcher)
Deprecated. Use registerLauncher(String, Class) instead. |
static void |
registerLauncher(java.lang.String launcherName,
java.lang.Class<? extends ILauncher> launcherClass)
Registers a launcher in the launcherRegistry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerLauncher(ILauncher launcher)
registerLauncher(String, Class) instead.
launcher - the launcher
public static void registerLauncher(java.lang.String launcherName,
java.lang.Class<? extends ILauncher> launcherClass)
launcherName - the launcher namelauncherClass - the launcher class
public static void registerInjector(java.lang.String name,
IInjector injector)
registerInjector(String, Class) instead.
name - the injector nameinjector - the injector
public static void registerInjector(java.lang.String injectorName,
java.lang.Class<? extends IInjector> injectorClass)
injectorName - the injector nameinjectorClass - the injector class
public static void registerExtractor(java.lang.String name,
IExtractor extractor)
registerExtractor(String, Class) instead.
name - the extractor nameextractor - the extractor
public static void registerExtractor(java.lang.String extractorName,
java.lang.Class<? extends IExtractor> extractorClass)
extractorName - the extractor nameextractorClass - the extractor class
public static void registerFactory(java.lang.String name,
java.lang.Class<? extends ModelFactory> factoryClass)
name - the factory namefactoryClass - the factory class
public static ModelFactory createModelFactory(java.lang.String name)
throws ATLCoreException
getModelFactory(String) instead.
ModelFactory with the given name.
name - the factory name
ATLCoreException
public static ModelFactory getModelFactory(java.lang.String name)
throws ATLCoreException
ModelFactory with the given name.
name - the factory name
ATLCoreException
public static ILauncher getLauncher(java.lang.String name)
throws ATLCoreException
name - the launcher name
ATLCoreException
public static IInjector getInjector(java.lang.String name)
throws ATLCoreException
name - the injector name
ATLCoreException
public static IExtractor getExtractor(java.lang.String name)
throws ATLCoreException
name - the extractors name
ATLCoreExceptionpublic static java.lang.String[] getLaunchersNames()
public static java.lang.String[] getLaunchersNames(java.lang.String mode)
mode - the launch mode restriction
public static java.lang.String[] getInjectorsNames()
public static java.lang.String[] getExtractorsNames()
public static java.lang.String[] getModelFactoriesNames()
public static java.util.Map<java.lang.String,java.lang.String> getLauncherOptions(java.lang.String launcherName)
launcherName - the launcher name
public static java.util.Map<java.lang.String,java.lang.String> getLauncherOptions(java.lang.String launcherName,
java.lang.String mode)
launcherName - the launcher namemode - the launch mode
public static java.lang.String getCompatibleLauncherName(java.lang.String name)
name - the launcher name
public static boolean isEclipseRunning()
true if eclipse is running
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||