public interface ISharedObjectFactory
SharedObjectFactory
for default
implementation.Modifier and Type | Method and Description |
---|---|
SharedObjectTypeDescription |
addDescription(SharedObjectTypeDescription description) |
boolean |
containsDescription(SharedObjectTypeDescription description)
Check to see if a given named description is already contained by this
factory
|
ISharedObject |
createSharedObject(SharedObjectTypeDescription typeDescription,
Object[] args)
Create ISharedObject instance.
|
ISharedObject |
createSharedObject(String descriptionName)
Create ISharedObject instance.
|
ISharedObject |
createSharedObject(String descriptionName,
Object[] args)
Create ISharedObject instance.
|
SharedObjectTypeDescription |
getDescriptionByName(String name)
Get the known SharedObjectTypeDescription given it's name.
|
List |
getDescriptions()
Get a collection of the SharedObjectTypeDescriptions currently known to
this factory.
|
SharedObjectTypeDescription |
removeDescription(SharedObjectTypeDescription scd)
Remove given description from set known to this factory.
|
SharedObjectTypeDescription addDescription(SharedObjectTypeDescription description)
List getDescriptions()
boolean containsDescription(SharedObjectTypeDescription description)
description
- the SharedObjectTypeDescription to look forSharedObjectTypeDescription getDescriptionByName(String name) throws SharedObjectCreateException
name
- SharedObjectCreateException
ISharedObject createSharedObject(SharedObjectTypeDescription typeDescription, Object[] args) throws SharedObjectCreateException
typeDescription
- 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 createdISharedObject createSharedObject(String descriptionName) throws SharedObjectCreateException
descriptionName
- the SharedObjectTypeDescription name to lookupSharedObjectCreateException
ISharedObject createSharedObject(String descriptionName, Object[] args) throws SharedObjectCreateException
descriptionName
- the SharedObjectTypeDescription name to lookupargs
- the Object [] of arguments passed to the
ISharedObjectInstantiator.createInstance methodSharedObjectCreateException
SharedObjectTypeDescription removeDescription(SharedObjectTypeDescription scd)
scd
- the SharedObjectTypeDescription to removeCopyright © 2004–2020 Eclipse Foundation. All rights reserved.