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 SharedObjectTypeDescriptionbooleanCheck to see if a given named description is already contained by this factoryprotected booleancreateSharedObject(String descriptionName) Create ISharedObject instance.createSharedObject(String descriptionName, Object[] args) Create ISharedObject instance.createSharedObject(SharedObjectTypeDescription desc, Object[] args) Create ISharedObject instance.static ISharedObjectFactoryprotected SharedObjectTypeDescriptiongetDescription0(String name) protected SharedObjectTypeDescriptiongetDescriptionByName(String name) Get the known SharedObjectTypeDescription given it's name.Get a collection of the SharedObjectTypeDescriptions currently known to this factory.protected ListRemove 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:ISharedObjectFactoryGet 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:
getDescriptionsin interfaceISharedObjectFactory- Returns:
- List of SharedObjectTypeDescription instances. Will not be null.
-
getDescriptions0
-
getDescription0
-
getDescriptionByName
public SharedObjectTypeDescription getDescriptionByName(String name) throws SharedObjectCreateException Description copied from interface:ISharedObjectFactoryGet the known SharedObjectTypeDescription given it's name.- Specified by:
getDescriptionByNamein interfaceISharedObjectFactory- Returns:
- SharedObjectTypeDescription found. Null if description not found.
- Throws:
SharedObjectCreateException
-