public class Activator extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Activator
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Activator
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Activator() |
Activator(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Activator |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Activator, a cast assert is made to check if types are compatible. |
static ObjectHandle |
CreateComInstanceFrom(java.lang.String assemblyName,
java.lang.String typeName) |
static ObjectHandle |
CreateComInstanceFrom(java.lang.String assemblyName,
java.lang.String typeName,
byte[] hashValue,
AssemblyHashAlgorithm hashAlgorithm) |
static ObjectHandle |
CreateComInstanceFrom(java.lang.String dupParam0,
java.lang.String dupParam1,
JCORefOut dupParam2,
AssemblyHashAlgorithm dupParam3) |
static ObjectHandle |
CreateInstance(ActivationContext activationContext) |
static ObjectHandle |
CreateInstance(ActivationContext dupParam0,
JCORefOut dupParam1) |
static ObjectHandle |
CreateInstance(ActivationContext activationContext,
java.lang.String[] activationCustomData) |
static ObjectHandle |
CreateInstance(AppDomain domain,
java.lang.String assemblyName,
java.lang.String typeName) |
static ObjectHandle |
CreateInstance(AppDomain domain,
java.lang.String assemblyName,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes) |
static ObjectHandle |
CreateInstance(AppDomain domain,
java.lang.String assemblyName,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes,
Evidence securityAttributes) |
static NetObject |
CreateInstance(NetType type) |
static NetObject |
CreateInstance(NetType type,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture) |
static NetObject |
CreateInstance(NetType type,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes) |
static NetObject |
CreateInstance(NetType type,
boolean nonPublic) |
static NetObject |
CreateInstance(NetType type,
NetObject... args) |
static NetObject |
CreateInstance(NetType type,
NetObject[] args,
NetObject[] activationAttributes) |
static ObjectHandle |
CreateInstance(java.lang.String assemblyName,
java.lang.String typeName) |
static ObjectHandle |
CreateInstance(java.lang.String assemblyName,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes) |
static ObjectHandle |
CreateInstance(java.lang.String assemblyName,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes,
Evidence securityInfo) |
static ObjectHandle |
CreateInstance(java.lang.String assemblyName,
java.lang.String typeName,
NetObject[] activationAttributes) |
static ObjectHandle |
CreateInstanceFrom(AppDomain domain,
java.lang.String assemblyFile,
java.lang.String typeName) |
static ObjectHandle |
CreateInstanceFrom(AppDomain domain,
java.lang.String assemblyFile,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes) |
static ObjectHandle |
CreateInstanceFrom(AppDomain domain,
java.lang.String assemblyFile,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes,
Evidence securityAttributes) |
static ObjectHandle |
CreateInstanceFrom(java.lang.String assemblyFile,
java.lang.String typeName) |
static ObjectHandle |
CreateInstanceFrom(java.lang.String assemblyFile,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes) |
static ObjectHandle |
CreateInstanceFrom(java.lang.String assemblyFile,
java.lang.String typeName,
boolean ignoreCase,
BindingFlags bindingAttr,
Binder binder,
NetObject[] args,
CultureInfo culture,
NetObject[] activationAttributes,
Evidence securityInfo) |
static ObjectHandle |
CreateInstanceFrom(java.lang.String assemblyFile,
java.lang.String typeName,
NetObject[] activationAttributes) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static NetObject |
GetObject(NetType type,
java.lang.String url) |
static NetObject |
GetObject(NetType type,
java.lang.String url,
NetObject state) |
void |
setJCOInstance(JCObject instance) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Activator()
throws java.lang.Throwable
java.lang.Throwablepublic Activator(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Activator cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Activator, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedActivator instancejava.lang.Throwable - in case of error during cast operationpublic static ObjectHandle CreateComInstanceFrom(java.lang.String assemblyName, java.lang.String typeName) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, FormatException, TypeLoadException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionFormatExceptionTypeLoadExceptionpublic static ObjectHandle CreateComInstanceFrom(java.lang.String assemblyName, java.lang.String typeName, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, FormatException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, TargetInvocationException, TypeLoadException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionTargetInvocationExceptionTypeLoadExceptionpublic static ObjectHandle CreateComInstanceFrom(java.lang.String dupParam0, java.lang.String dupParam1, JCORefOut dupParam2, AssemblyHashAlgorithm dupParam3) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, FormatException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, TargetInvocationException, TypeLoadException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionTargetInvocationExceptionTypeLoadExceptionpublic static ObjectHandle CreateInstance(ActivationContext activationContext) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, NotImplementedException, MemberAccessException, PolicyException, OverflowException, RankException, NullReferenceException, RemotingException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionNotImplementedExceptionMemberAccessExceptionPolicyExceptionOverflowExceptionRankExceptionNullReferenceExceptionRemotingExceptionInvalidCastExceptionpublic static ObjectHandle CreateInstance(ActivationContext dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, NotImplementedException, OutOfMemoryException, MemberAccessException, PolicyException, OverflowException, RankException, TargetParameterCountException, RemotingException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionNotImplementedExceptionOutOfMemoryExceptionMemberAccessExceptionPolicyExceptionOverflowExceptionRankExceptionTargetParameterCountExceptionRemotingExceptionInvalidCastExceptionpublic static ObjectHandle CreateInstance(ActivationContext activationContext, java.lang.String[] activationCustomData) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, NotImplementedException, OutOfMemoryException, MemberAccessException, PolicyException, OverflowException, RankException, TargetParameterCountException, RemotingException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionNotImplementedExceptionOutOfMemoryExceptionMemberAccessExceptionPolicyExceptionOverflowExceptionRankExceptionTargetParameterCountExceptionRemotingExceptionInvalidCastExceptionpublic static ObjectHandle CreateInstance(AppDomain domain, java.lang.String assemblyName, java.lang.String typeName) throws java.lang.Throwable, ArgumentNullException, SecurityException, NullReferenceException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, TypeLoadException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
public static ObjectHandle CreateInstance(AppDomain domain, java.lang.String assemblyName, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws java.lang.Throwable, ArgumentNullException, SecurityException, NullReferenceException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, TypeLoadException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
public static ObjectHandle CreateInstance(AppDomain domain, java.lang.String assemblyName, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityAttributes) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, SecurityException, NullReferenceException, ArgumentException, IndexOutOfRangeException, TypeLoadException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
public static NetObject CreateInstance(NetType type) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, NotSupportedException, SecurityException, MissingMethodException, TargetInvocationException, NotImplementedException
public static NetObject CreateInstance(NetType type, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture) throws java.lang.Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, FormatException, MissingMethodException
public static NetObject CreateInstance(NetType type, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws java.lang.Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException
public static NetObject CreateInstance(NetType type, boolean nonPublic) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, NotSupportedException, MissingMethodException, SecurityException, TargetInvocationException, NotImplementedException, IndexOutOfRangeException
public static NetObject CreateInstance(NetType type, NetObject... args) throws java.lang.Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, FormatException, MissingMethodException
public static NetObject CreateInstance(NetType type, NetObject[] args, NetObject[] activationAttributes) throws java.lang.Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, FormatException, MissingMethodException
public static ObjectHandle CreateInstance(java.lang.String assemblyName, java.lang.String typeName) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionPathTooLongExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionpublic static ObjectHandle CreateInstance(java.lang.String assemblyName, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionPathTooLongExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionpublic static ObjectHandle CreateInstance(java.lang.String assemblyName, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityInfo) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionPathTooLongExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionpublic static ObjectHandle CreateInstance(java.lang.String assemblyName, java.lang.String typeName, NetObject[] activationAttributes) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionPathTooLongExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionpublic static ObjectHandle CreateInstanceFrom(AppDomain domain, java.lang.String assemblyFile, java.lang.String typeName) throws java.lang.Throwable, ArgumentNullException, SecurityException, NullReferenceException, NotSupportedException, NotImplementedException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException
public static ObjectHandle CreateInstanceFrom(AppDomain domain, java.lang.String assemblyFile, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws java.lang.Throwable, ArgumentNullException, SecurityException, NullReferenceException, InvalidOperationException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, NotImplementedException, MissingMethodException, TargetInvocationException, FormatException
public static ObjectHandle CreateInstanceFrom(AppDomain domain, java.lang.String assemblyFile, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityAttributes) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, SecurityException, NullReferenceException, ArgumentException, ArgumentOutOfRangeException, NotImplementedException, MissingMethodException, TargetInvocationException, FormatException
public static ObjectHandle CreateInstanceFrom(java.lang.String assemblyFile, java.lang.String typeName) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static ObjectHandle CreateInstanceFrom(java.lang.String assemblyFile, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, FormatException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionFormatExceptionpublic static ObjectHandle CreateInstanceFrom(java.lang.String assemblyFile, java.lang.String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityInfo) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, FormatException
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotImplementedExceptionInvalidCastExceptionNullReferenceExceptionMissingMethodExceptionFormatExceptionpublic static ObjectHandle CreateInstanceFrom(java.lang.String assemblyFile, java.lang.String typeName, NetObject[] activationAttributes) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic static NetObject GetObject(NetType type, java.lang.String url) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, RemotingException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, AbandonedMutexException, IndexOutOfRangeException, SecurityException, OutOfMemoryException, InvalidCastException
public static NetObject GetObject(NetType type, java.lang.String url, NetObject state) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, RemotingException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, SecurityException, OutOfMemoryException, IndexOutOfRangeException, FormatException, InvalidCastException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject