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,
java.lang.Object[] args)
Create ISharedObject instance.
|
ISharedObject |
createSharedObject(java.lang.String descriptionName)
Create ISharedObject instance.
|
ISharedObject |
createSharedObject(java.lang.String descriptionName,
java.lang.Object[] args)
Create ISharedObject instance.
|
SharedObjectTypeDescription |
getDescriptionByName(java.lang.String name)
Get the known SharedObjectTypeDescription given it's name.
|
java.util.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)
java.util.List getDescriptions()
boolean containsDescription(SharedObjectTypeDescription description)
description - the SharedObjectTypeDescription to look forSharedObjectTypeDescription getDescriptionByName(java.lang.String name) throws SharedObjectCreateException
name - SharedObjectCreateExceptionISharedObject createSharedObject(SharedObjectTypeDescription typeDescription, java.lang.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(java.lang.String descriptionName) throws SharedObjectCreateException
descriptionName - the SharedObjectTypeDescription name to lookupSharedObjectCreateExceptionISharedObject createSharedObject(java.lang.String descriptionName, java.lang.Object[] args) throws SharedObjectCreateException
descriptionName - the SharedObjectTypeDescription name to lookupargs - the Object [] of arguments passed to the
ISharedObjectInstantiator.createInstance methodSharedObjectCreateExceptionSharedObjectTypeDescription removeDescription(SharedObjectTypeDescription scd)
scd - the SharedObjectTypeDescription to remove