Class SharedObjectFactory
java.lang.Object
org.eclipse.ecf.core.sharedobject.SharedObjectFactory
- All Implemented Interfaces:
ISharedObjectFactory
Factory for creating
ISharedObject
instances. This class provides ECF
clients an entry point to constructing ISharedObject
instances. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDescription
(SharedObjectTypeDescription description) protected SharedObjectTypeDescription
boolean
Check to see if a given named description is already contained by this factoryprotected boolean
createSharedObject
(String descriptionName) Create ISharedObject instance.createSharedObject
(String descriptionName, Object[] args) Create ISharedObject instance.createSharedObject
(SharedObjectTypeDescription desc, Object[] args) Create ISharedObject instance.static ISharedObjectFactory
protected SharedObjectTypeDescription
getDescription0
(String name) protected SharedObjectTypeDescription
getDescriptionByName
(String name) Get the known SharedObjectTypeDescription given it's name.Get a collection of the SharedObjectTypeDescriptions currently known to this factory.protected List
Remove given description from set known to this factory.protected SharedObjectTypeDescription
-
Field Details
-
instance
-
-
Constructor Details
-
SharedObjectFactory
protected SharedObjectFactory()
-
-
Method Details
-
getDefault
-
getDescriptions
Description copied from interface:ISharedObjectFactory
Get a collection of the SharedObjectTypeDescriptions currently known to this factory. This allows clients to query the factory to determine what if any other SharedObjectTypeDescriptions are currently registered with the factory, and if so, what they are.- Specified by:
getDescriptions
in interfaceISharedObjectFactory
- Returns:
- List of SharedObjectTypeDescription instances. Will not be null.
-
getDescriptions0
-
getDescription0
-
getDescriptionByName
public SharedObjectTypeDescription getDescriptionByName(String name) throws SharedObjectCreateException Description copied from interface:ISharedObjectFactory
Get the known SharedObjectTypeDescription given it's name.- Specified by:
getDescriptionByName
in interfaceISharedObjectFactory
- Returns:
- SharedObjectTypeDescription found. Null if description not found.
- Throws:
SharedObjectCreateException
-