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 ISharedObjectFactory
public List getDescriptions()
ISharedObjectFactory
getDescriptions
in interface ISharedObjectFactory
protected List getDescriptions0()
protected SharedObjectTypeDescription addDescription0(SharedObjectTypeDescription n)
public boolean containsDescription(SharedObjectTypeDescription scd)
ISharedObjectFactory
containsDescription
in interface ISharedObjectFactory
scd
- 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
ISharedObjectFactory
getDescriptionByName
in interface ISharedObjectFactory
SharedObjectCreateException
public ISharedObject createSharedObject(SharedObjectTypeDescription desc, Object[] args) throws SharedObjectCreateException
ISharedObjectFactory
createSharedObject
in interface ISharedObjectFactory
desc
- 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 ISharedObjectFactory
descriptionName
- the SharedObjectTypeDescription name to lookupSharedObjectCreateException
public ISharedObject createSharedObject(String descriptionName, Object[] args) throws SharedObjectCreateException
ISharedObjectFactory
createSharedObject
in interface ISharedObjectFactory
descriptionName
- the SharedObjectTypeDescription name to lookupargs
- the Object [] of arguments passed to the
ISharedObjectInstantiator.createInstance methodSharedObjectCreateException
public SharedObjectTypeDescription removeDescription(SharedObjectTypeDescription scd)
ISharedObjectFactory
removeDescription
in interface ISharedObjectFactory
scd
- the SharedObjectTypeDescription to removeprotected SharedObjectTypeDescription removeDescription0(SharedObjectTypeDescription n)
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.