Eclipse Platform
Release 3.2

org.eclipse.core.runtime
Class RegistryFactory

java.lang.Object
  extended byorg.eclipse.core.runtime.RegistryFactory

public final class RegistryFactory
extends Object

Use this class to create or obtain an extension registry. This class is not intended to be subclassed or instantiated.

Since:
org.eclipse.equinox.registry 1.0

Constructor Summary
RegistryFactory()
           
 
Method Summary
static IExtensionRegistry createRegistry(org.eclipse.core.runtime.spi.RegistryStrategy strategy, Object masterToken, Object userToken)
          Creates an extension registry.
static IExtensionRegistry getRegistry()
          Returns the existing extension registry specified by the registry provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryFactory

public RegistryFactory()
Method Detail

createRegistry

public static IExtensionRegistry createRegistry(org.eclipse.core.runtime.spi.RegistryStrategy strategy,
                                                Object masterToken,
                                                Object userToken)
Creates an extension registry.

Parameters:
strategy - - optional strategies that modify registry functionality; might be null
masterToken - - master control token for the registry. Keep it to access controlled methods of the registry. Contributions made with this token are marked as non-dynamic.
userToken - - user access token for the registry. Contributions made with this token are marked as dynamic.
Returns:
- new extension registry
Throws:
CoreException - in case if registry start conditions are not met. The exception's status message provides additional details.

getRegistry

public static IExtensionRegistry getRegistry()
Returns the existing extension registry specified by the registry provider. May return null is the provider has not been set or registry was not created.

Returns:
existing extension registry or null

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.