|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.altair.hwm.toolkit.binding.HWMAdapterMgr
public class HWMAdapterMgr
Title: HWMAdapterMgr
Description: This class manages all operatios pertaining to the adapter class, which include writing the adapter class, any queries to the adapter class, etc.
Company: Altair Engineering, Inc.
| Constructor Summary | |
|---|---|
HWMAdapterMgr()
Constructor. |
|
| Method Summary | |
|---|---|
void |
AddListener(HWMBindingInfo hwmBindingInfo)
Gets the adaptor class from binding info and calls AddListener method on it. |
void |
ClearAll()
When a new template/project is loaded, or the existing project/template closed, the adapter manager needs to reinitialize itself |
int |
GetLastUsedAdapterClassID()
Get the last used adapter ID class. |
void |
InitEventAdapter(HWMBindingInfo hwmBindingInfo,
java.lang.Object objBeanSource,
java.lang.Object objBeanTarget,
java.lang.String strTemplateDir,
HWMClassLoader hwmClassLoader)
Create an instance of the adapter class, and Initialize it. |
void |
InitPropertyAdapter(HWMBindingInfo hwmBindingInfo,
java.lang.Object objBeanSource,
java.lang.Object objBeanTarget)
Instantiates the property adapter class for the binding and stores it in the binding info |
void |
RemoveListener(HWMBindingInfo hwmBindingInfo)
Gets the adaptor class from binding info and calls RemoveListener method on it. |
void |
SetLastUsedAdapterClassID(int nID)
Set the last used adapter ID class. |
void |
WriteAdapterClass(HWMBindingInfo hwmBindingInfo,
java.lang.Object objBeanSource,
java.lang.Object objBeanTarget,
java.lang.String strTemplateDir,
java.lang.String strTemplateName,
HWMClassLoader hwmClassLoader)
Write the adapter class for the information provided by the BindingInfo, and compile it to a class file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HWMAdapterMgr()
| Method Detail |
|---|
public void WriteAdapterClass(HWMBindingInfo hwmBindingInfo,
java.lang.Object objBeanSource,
java.lang.Object objBeanTarget,
java.lang.String strTemplateDir,
java.lang.String strTemplateName,
HWMClassLoader hwmClassLoader)
throws java.io.IOException,
java.lang.NoSuchMethodException,
java.lang.InterruptedException,
java.lang.Exception
hwmBindingInfo - -- The binding info for the adapter class to
be writtenstrTemplateDir - -- The template directory
java.io.IOException
java.lang.NoSuchMethodException
java.lang.InterruptedException
java.lang.Exception
public void InitEventAdapter(HWMBindingInfo hwmBindingInfo,
java.lang.Object objBeanSource,
java.lang.Object objBeanTarget,
java.lang.String strTemplateDir,
HWMClassLoader hwmClassLoader)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
java.lang.Exception
hwmBindingInfo - -- The Binding Info structure that holds the
information about the adapter class and the source.target beansstrTemplateDir - -- The template directory
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.Exception
public void InitPropertyAdapter(HWMBindingInfo hwmBindingInfo,
java.lang.Object objBeanSource,
java.lang.Object objBeanTarget)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
java.lang.Exception
hwmBindingInfo - -- The Binding Info structure that holds the
information about the adapter class and the source.target beans
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.Exceptionpublic void ClearAll()
public int GetLastUsedAdapterClassID()
public void SetLastUsedAdapterClassID(int nID)
nID - The ID to use for generating the adapetr classpublic void AddListener(HWMBindingInfo hwmBindingInfo)
hwmBindingInfo - The binding info objectpublic void RemoveListener(HWMBindingInfo hwmBindingInfo)
hwmBindingInfo - The binding info object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||