com.tibco.amf.sharedresource.runtime.core.teneo.sharedresource
Interface TeneoSessionFactory


public interface TeneoSessionFactory

Proxy for the SessionFactory that handles dynamically creating new SessionFactories under the covers with added mappings from the EPackages.


Method Summary
 void addEPackage(org.eclipse.emf.ecore.EPackage epackage)
          Add an EPackage to the SessionFactory.
 void addEPackage(java.lang.String versionNumber, org.eclipse.emf.ecore.EPackage epackage)
          Add an EPackage to the SessionFactory.
 void addEPackages(org.eclipse.emf.ecore.EPackage[] epackages)
          Add an array of EPackages to the SessionFactory.
 void addEPackages(java.lang.String versionNumber, org.eclipse.emf.ecore.EPackage[] epackages)
          Add an array of EPackages to the SessionFactory.
 void registerExtension(org.eclipse.emf.teneo.extension.Extension extension)
          Register an Extension to SessionFactory.
 void registerExtension(java.lang.String name, java.lang.String value)
          Register an Extension to SessionFactory.
 void removeEPackage(org.eclipse.emf.ecore.EPackage epackage)
          Remove an EPackage form the SessionFactory.
 void removeEPackage(java.lang.String versionNumber, org.eclipse.emf.ecore.EPackage epackage)
          Remove an EPackage form the SessionFactory.
 void removeEPackages(org.eclipse.emf.ecore.EPackage[] epackages)
          Remove an array of EPackages form the SessionFactory.
 void removeEPackages(java.lang.String versionNumber, org.eclipse.emf.ecore.EPackage[] epackages)
          Remove an array of EPackages form the SessionFactory.
 void unregisterExtension(org.eclipse.emf.teneo.extension.Extension extension)
          Unregister an Extension from SessionFactory.
 void unregisterExtension(java.lang.String name)
          Unregister an Extension from SessionFactory.
 

Method Detail

addEPackage

void addEPackage(org.eclipse.emf.ecore.EPackage epackage)
Add an EPackage to the SessionFactory. Before calling this API it is excepted to set Thread contextClasslader of the bundle which imports the interface and implementation packages of the EPackage. Picks the highest version of EPackage to build the SessionFactory. If no explicit version is passed it is considered as 0.0.0.

Parameters:
epackage - EPackage to be added.

addEPackages

void addEPackages(org.eclipse.emf.ecore.EPackage[] epackages)
Add an array of EPackages to the SessionFactory. Before calling this API it is excepted to set Thread contextClasslader of the bundle which imports the interface and implementation packages of the EPackage. Picks the highest version of EPackage to build the SessionFactory. If no explicit version is passed it is considered as 0.0.0.

Parameters:
epackages -

addEPackage

void addEPackage(java.lang.String versionNumber,
                 org.eclipse.emf.ecore.EPackage epackage)
Add an EPackage to the SessionFactory. Before calling this API it is excepted to set Thread contextClasslader of the bundle which imports the interface and implementation packages of the EPackage. Picks the highest version of EPackage to build the SessionFactory. If no explicit version is passed it is considered as 0.0.0.

Parameters:
versionNumber - version to consider for the EPackage
epackage - EPackage to be added.

addEPackages

void addEPackages(java.lang.String versionNumber,
                  org.eclipse.emf.ecore.EPackage[] epackages)
Add an array of EPackages to the SessionFactory. Before calling this API it is excepted to set Thread contextClasslader of the bundle which imports the interface and implementation packages of the EPackage. Picks the highest version of EPackage to build the SessionFactory. If no explicit version is passed it is considered as 0.0.0.

Parameters:
versionNumber - version to consider for the EPackages
epackages - EPackage to be added.

removeEPackage

void removeEPackage(org.eclipse.emf.ecore.EPackage epackage)
Remove an EPackage form the SessionFactory. Before calling this API it is excepted to set same Thread contextClasslader which set during addition of EPackage. If no explicit version is passed it is considered as 0.0.0.

Parameters:
epackage - EPackage to be removed.

removeEPackages

void removeEPackages(org.eclipse.emf.ecore.EPackage[] epackages)
Remove an array of EPackages form the SessionFactory. Before calling this API it is excepted to set same Thread contextClasslader which set during addition of EPackage. If no explicit version is passed it is considered as 0.0.0.

Parameters:
epackages - EPackages to be removed.

removeEPackage

void removeEPackage(java.lang.String versionNumber,
                    org.eclipse.emf.ecore.EPackage epackage)
Remove an EPackage form the SessionFactory. Before calling this API it is excepted to set same Thread contextClasslader which set during addition of EPackage. If no explicit version is passed it is considered as 0.0.0.

Parameters:
versionNumber - version to consider for the EPackage
epackage - EPackage to be removed.

removeEPackages

void removeEPackages(java.lang.String versionNumber,
                     org.eclipse.emf.ecore.EPackage[] epackages)
Remove an array of EPackages form the SessionFactory. Before calling this API it is excepted to set same Thread contextClasslader which set during addition of EPackage. If no explicit version is passed it is considered as 0.0.0.

Parameters:
versionNumber - version to consider for the EPackages
epackages - EPackages to be removed.

registerExtension

void registerExtension(java.lang.String name,
                       java.lang.String value)
Register an Extension to SessionFactory. Before calling this API it is excepted to set Thread contextClasslader of the bundle form which extension class can be loaded.

Parameters:
name - - Name of the extension to register as.
value - - Class name of the extension.

unregisterExtension

void unregisterExtension(java.lang.String name)
Unregister an Extension from SessionFactory. Before calling this API it is excepted to set same Thread contextClasslader which set during register of Extension.

Parameters:
name - - Name of the extension.

registerExtension

void registerExtension(org.eclipse.emf.teneo.extension.Extension extension)
Register an Extension to SessionFactory. Before calling this API it is excepted to set Thread contextClasslader of the bundle form which extension class can be loaded.

Parameters:
extension - Extension to be registered

unregisterExtension

void unregisterExtension(org.eclipse.emf.teneo.extension.Extension extension)
Unregister an Extension from SessionFactory. Before calling this API it is excepted to set same Thread contextClasslader which set during register of Extension.

Parameters:
extension - Extension to be registered


Copyright © 2011 TIBCO Software Inc. All Rights Reserved.