public class TClrAppDomain extends TClrBase implements IClrAppDomain
Constructor and Description |
---|
TClrAppDomain(DotNetNativeTypes.ClrAppDomain appDomain)
Creates a new application domain with the clr appdomain pointer.
|
TClrAppDomain(java.lang.String friendlyName)
Creates a new application domain with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssemblyResolveEventHandler(DotNetNativeTypes.IClrEventHandlerReturn callBack)
Add AssemblyResolve event handler which will get invoked when the resolution of an assembly fails.
|
void |
close() |
static IClrAppDomain |
createDomain(java.lang.String friendlyName)
Creates a new application domain with the specified name.
|
IClrAssembly[] |
getAssemblies()
Gets an array of assemblies in this application domain.
|
java.lang.String |
getBaseDirectory()
Gets the base directory that the assembly resolver uses to probe for assemblies.
|
DotNetNativeTypes.ClrObject |
getClrObject()
Gets the base clr object pointer.
|
static IClrAppDomain |
getCurrentDomain()
Gets the current application domain for the current Thread.
|
DotNetNativeTypes.ClrAppDomain |
getDefaultPointer()
Gets the default clr appDomain pointer
|
java.lang.String |
getFriendlyName()
Gets the friendly name of this application domain.
|
boolean |
isDefault()
Returns a value that indicates whether the application domain is the default application domain for the process.
|
IClrAssembly |
load(java.lang.String assemblyString)
Loads an Assembly given its display name.
|
void |
removeAssemblyResolveEventHandler(DotNetNativeTypes.IClrEventHandlerReturn callBack)
Remove AssemblyResolve event handler from the current application domain.
|
void |
unload()
Unloads the current application domain.
|
clearRef, equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, getType, invokeGenericClrObjectMethod, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEvent, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEvent, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, getBaseObject, getFieldValue, getPropertyIndexValue, getPropertyIndexValue, getPropertyValue, getType, invokeGenericMethod, invokeMethod, invokeVoidMethod, registerEventCallBack, registerEventCallBackWithReturn, setFieldValue, setPropertyIndexValue, setPropertyIndexValue, setPropertyValue, unRegisterEventCallBack, unRegisterEventCallBackWithReturn
public TClrAppDomain(java.lang.String friendlyName) throws EClrError
friendlyName
- The friendly name of the domain.EClrError
public TClrAppDomain(DotNetNativeTypes.ClrAppDomain appDomain)
appDomain
- An Clr AppDomain Objectpublic static final IClrAppDomain getCurrentDomain() throws EClrError
EClrError
public static final IClrAppDomain createDomain(java.lang.String friendlyName) throws EClrError
friendlyName
- The friendly name of the domain.EClrError
public DotNetNativeTypes.ClrObject getClrObject() throws EClrError
getClrObject
in class TClrBase
EClrError
public void close() throws java.lang.Exception
public DotNetNativeTypes.ClrAppDomain getDefaultPointer()
getDefaultPointer
in interface IClrAppDomain
public boolean isDefault()
isDefault
in interface IClrAppDomain
public java.lang.String getBaseDirectory() throws EClrError
getBaseDirectory
in interface IClrAppDomain
EClrError
public java.lang.String getFriendlyName() throws EClrError
getFriendlyName
in interface IClrAppDomain
EClrError
public IClrAssembly load(java.lang.String assemblyString) throws EClrError
load
in interface IClrAppDomain
assemblyString
- The display name of the assembly.EClrError
public IClrAssembly[] getAssemblies() throws java.lang.Exception
getAssemblies
in interface IClrAppDomain
java.lang.Exception
public void unload() throws EClrError
unload
in interface IClrAppDomain
EClrError
public void addAssemblyResolveEventHandler(DotNetNativeTypes.IClrEventHandlerReturn callBack) throws EClrError
addAssemblyResolveEventHandler
in interface IClrAppDomain
callBack
- Represent the ClrEventHandlerReturn method pointer that handles the AssemblyResolve event.EClrError
public void removeAssemblyResolveEventHandler(DotNetNativeTypes.IClrEventHandlerReturn callBack) throws EClrError
removeAssemblyResolveEventHandler
in interface IClrAppDomain
callBack
- Represent the ClrEventHandlerReturn method pointer which was added to theAssemblyResolve event.EClrError