|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISharedObjectFactory
Container factory contract SharedObjectFactory
for default implementation.
Method Summary | |
---|---|
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.String[] argTypes,
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. |
ISharedObject |
createSharedObject(java.lang.String descriptionName,
java.lang.String[] argsTypes,
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. |
Method Detail |
---|
SharedObjectTypeDescription addDescription(SharedObjectTypeDescription description)
java.util.List getDescriptions()
boolean containsDescription(SharedObjectTypeDescription description)
description
- the SharedObjectTypeDescription to look for
SharedObjectTypeDescription getDescriptionByName(java.lang.String name) throws SharedObjectCreateException
name
-
SharedObjectCreateException
ISharedObject createSharedObject(SharedObjectTypeDescription typeDescription, java.lang.String[] argTypes, java.lang.Object[] args) throws SharedObjectCreateException
typeDescription
- the SharedObjectTypeDescription to use to create the instanceargTypes
- a String [] defining the types of the args parameterargs
- an Object [] of arguments passed to the createInstance method of
the ISharedObjectInstantiator
SharedObjectCreateException
ISharedObject createSharedObject(java.lang.String descriptionName) throws SharedObjectCreateException
descriptionName
- the SharedObjectTypeDescription name to lookup
SharedObjectCreateException
ISharedObject 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 method
SharedObjectCreateException
ISharedObject createSharedObject(java.lang.String descriptionName, java.lang.String[] argsTypes, java.lang.Object[] args) throws SharedObjectCreateException
descriptionName
- the SharedObjectTypeDescription name to lookupargsTypes
- the String [] of argument types of the following argsargs
- the Object [] of arguments passed to the
ISharedObjectInstantiator.createInstance method
SharedObjectCreateException
SharedObjectTypeDescription removeDescription(SharedObjectTypeDescription scd)
scd
- the SharedObjectTypeDescription to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |