public interface DatagramFactoryManager
Title: Structured Data Objects
Description: A general interface for dealing with Datagram Factories.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
addDatagramFactory(java.lang.Class factoryClass)
Adds a datagram factory corresponding to the specified class.
|
DatagramPrototypeCache |
getPrototypeCache()
Returns the prototype cache associated with the manager.
|
java.util.List |
listDatagramFactories()
Returns a list of names of Datagram Factories in the cache.
|
java.util.List |
listPrototypeModels()
Returns a list of all prototype models supported by the manager (i.e.
|
DatagramFactory |
lookupDatagramFactory(java.lang.String factoryName)
Returns a managed instance of the datagram factory.
|
DatagramFactory |
lookupDatagramFactoryByAncestor(java.lang.String ancestorName)
Finds and returns the datagram factory corresponding to the specified ancestor
Semantic Type . |
DatagramFactory |
lookupDatagramFactoryByModel(java.lang.String modelName)
Finds and returns the datagram factory supporting the specified datagram model.
|
void |
removeDatagramFactory(java.lang.String factoryName)
Removes the datagram factory and also removes all of it's associated prototypes from the prototype cache.
|
void addDatagramFactory(java.lang.Class factoryClass) throws DatagramFactoryManagerException
factoryClass
- the class of the factory to be added.DatagramFactoryManagerException
- if some error occurs during the adding.void removeDatagramFactory(java.lang.String factoryName) throws DatagramFactoryManagerException
factoryName
- the name of the factory to be removed.DatagramFactoryManagerException
- if some error occurs during the removing.DatagramFactory lookupDatagramFactory(java.lang.String factoryName)
The following system factories are added by default:
Users may add their own factories to the cache. This method returns anull
if the
specified factory is not in the cache.factoryName
- the name of the factory to be looked up.null
if the factory is not found.DatagramFactory lookupDatagramFactoryByAncestor(java.lang.String ancestorName)
Semantic Type
.ancestorName
- the name of the specified ancestor Semantic Type
.null
if the factory is not found.DatagramFactory lookupDatagramFactoryByModel(java.lang.String modelName)
modelName
- the name of the specified datagram model.null
if the factory is not found.java.util.List listDatagramFactories()
DatagramPrototypeCache getPrototypeCache()
java.util.List listPrototypeModels()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.