public class SharedObjectFactory extends Object implements ISharedObjectFactory
ISharedObject instances. This class provides ECF
clients an entry point to constructing ISharedObject instances. | Modifier and Type | Field and Description |
|---|---|
protected static ISharedObjectFactory |
instance |
| Modifier | Constructor and Description |
|---|---|
protected |
SharedObjectFactory() |
protected static ISharedObjectFactory instance
public static ISharedObjectFactory getDefault()
public SharedObjectTypeDescription addDescription(SharedObjectTypeDescription description)
addDescription in interface ISharedObjectFactorypublic List getDescriptions()
ISharedObjectFactorygetDescriptions in interface ISharedObjectFactoryprotected List getDescriptions0()
protected SharedObjectTypeDescription addDescription0(SharedObjectTypeDescription n)
public boolean containsDescription(SharedObjectTypeDescription scd)
ISharedObjectFactorycontainsDescription in interface ISharedObjectFactoryscd - the SharedObjectTypeDescription to look forprotected boolean containsDescription0(SharedObjectTypeDescription scd)
protected SharedObjectTypeDescription getDescription0(SharedObjectTypeDescription scd)
protected SharedObjectTypeDescription getDescription0(String name)
public SharedObjectTypeDescription getDescriptionByName(String name) throws SharedObjectCreateException
ISharedObjectFactorygetDescriptionByName in interface ISharedObjectFactorySharedObjectCreateExceptionpublic ISharedObject createSharedObject(SharedObjectTypeDescription desc, Object[] args) throws SharedObjectCreateException
ISharedObjectFactory
createSharedObject in interface ISharedObjectFactorydesc - the SharedObjectTypeDescription to use to create the instanceargs - an Object [] of arguments passed to the createInstance method
of the ISharedObjectInstantiatorSharedObjectCreateException - if shared object cannot be createdpublic ISharedObject createSharedObject(String descriptionName) throws SharedObjectCreateException
ISharedObjectFactory
createSharedObject in interface ISharedObjectFactorydescriptionName - the SharedObjectTypeDescription name to lookupSharedObjectCreateExceptionpublic ISharedObject createSharedObject(String descriptionName, Object[] args) throws SharedObjectCreateException
ISharedObjectFactory
createSharedObject in interface ISharedObjectFactorydescriptionName - the SharedObjectTypeDescription name to lookupargs - the Object [] of arguments passed to the
ISharedObjectInstantiator.createInstance methodSharedObjectCreateExceptionpublic SharedObjectTypeDescription removeDescription(SharedObjectTypeDescription scd)
ISharedObjectFactoryremoveDescription in interface ISharedObjectFactoryscd - the SharedObjectTypeDescription to removeprotected SharedObjectTypeDescription removeDescription0(SharedObjectTypeDescription n)
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.