Package system
Class Activator
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.Activator
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Activator extends NetObject
The base .NET class managing System.Activator, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Activator
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: mscorlibstatic String
className
Qualified class name: System.Activatorstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Activator
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoActivator
, a cast assert is made to check if types are compatible.static ObjectHandle
CreateComInstanceFrom(String assemblyName, String typeName)
static ObjectHandle
CreateComInstanceFrom(String assemblyName, String typeName, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
static ObjectHandle
CreateComInstanceFrom(String dupParam0, String dupParam1, JCORefOut dupParam2, AssemblyHashAlgorithm dupParam3)
static ObjectHandle
CreateInstance(String assemblyName, String typeName)
static ObjectHandle
CreateInstance(String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes)
static ObjectHandle
CreateInstance(String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityInfo)
static ObjectHandle
CreateInstance(String assemblyName, String typeName, NetObject[] activationAttributes)
static NetObject
CreateInstance(NetType type)
static NetObject
CreateInstance(NetType type, boolean nonPublic)
static NetObject
CreateInstance(NetType type, NetObject... args)
static NetObject
CreateInstance(NetType type, NetObject[] args, NetObject[] activationAttributes)
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 ObjectHandle
CreateInstance(ActivationContext activationContext)
static ObjectHandle
CreateInstance(ActivationContext activationContext, String[] activationCustomData)
static ObjectHandle
CreateInstance(ActivationContext dupParam0, JCORefOut dupParam1)
static ObjectHandle
CreateInstance(AppDomain domain, String assemblyName, String typeName)
static ObjectHandle
CreateInstance(AppDomain domain, String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes)
static ObjectHandle
CreateInstance(AppDomain domain, String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityAttributes)
static ObjectHandle
CreateInstanceFrom(String assemblyFile, String typeName)
static ObjectHandle
CreateInstanceFrom(String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes)
static ObjectHandle
CreateInstanceFrom(String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityInfo)
static ObjectHandle
CreateInstanceFrom(String assemblyFile, String typeName, NetObject[] activationAttributes)
static ObjectHandle
CreateInstanceFrom(AppDomain domain, String assemblyFile, String typeName)
static ObjectHandle
CreateInstanceFrom(AppDomain domain, String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes)
static ObjectHandle
CreateInstanceFrom(AppDomain domain, String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityAttributes)
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic NetObject
GetObject(NetType type, String url)
static NetObject
GetObject(NetType type, String url, NetObject state)
void
GetTypeInfoCount(JCORefOut<UInt32> pcTInfo)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.void
setJCOInstance(JCObject instance)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Activator- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Activator cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoActivator
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Activator
instance- Throws:
Throwable
- in case of error during cast operation
-
CreateInstance
public static NetObject CreateInstance(NetType type) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, NotSupportedException, SecurityException, MissingMethodException, TargetInvocationException, NotImplementedException
-
CreateInstance
public static NetObject CreateInstance(NetType type, boolean nonPublic) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, NotSupportedException, MissingMethodException, SecurityException, TargetInvocationException, NotImplementedException, IndexOutOfRangeException
-
CreateInstance
public static NetObject CreateInstance(NetType type, NetObject... args) throws Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, FormatException, MissingMethodException
-
CreateInstance
public static NetObject CreateInstance(NetType type, NetObject[] args, NetObject[] activationAttributes) throws Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, FormatException, MissingMethodException
-
CreateInstance
public static NetObject CreateInstance(NetType type, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture) throws Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, FormatException, MissingMethodException
-
CreateInstance
public static NetObject CreateInstance(NetType type, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws Throwable, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException
-
GetObject
public static NetObject GetObject(NetType type, String url) throws Throwable, ArgumentNullException, InvalidOperationException, RemotingException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, AbandonedMutexException, IndexOutOfRangeException, SecurityException, OutOfMemoryException, InvalidCastException
-
GetObject
public static NetObject GetObject(NetType type, String url, NetObject state) throws Throwable, ArgumentNullException, InvalidOperationException, RemotingException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, SecurityException, OutOfMemoryException, IndexOutOfRangeException, FormatException, InvalidCastException
-
CreateComInstanceFrom
public static ObjectHandle CreateComInstanceFrom(String assemblyName, String typeName) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, FormatException, TypeLoadException
- Throws:
Throwable
ArgumentNullException
InvalidOperationException
NotSupportedException
ArgumentException
IndexOutOfRangeException
ArgumentOutOfRangeException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
FormatException
TypeLoadException
-
CreateComInstanceFrom
public static ObjectHandle CreateComInstanceFrom(String assemblyName, String typeName, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, FormatException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, TargetInvocationException, TypeLoadException
- Throws:
Throwable
ArgumentNullException
InvalidOperationException
NotSupportedException
FormatException
ArgumentException
IndexOutOfRangeException
ArgumentOutOfRangeException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
TargetInvocationException
TypeLoadException
-
CreateComInstanceFrom
public static ObjectHandle CreateComInstanceFrom(String dupParam0, String dupParam1, JCORefOut dupParam2, AssemblyHashAlgorithm dupParam3) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, FormatException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, TargetInvocationException, TypeLoadException
- Throws:
Throwable
ArgumentNullException
InvalidOperationException
NotSupportedException
FormatException
ArgumentException
IndexOutOfRangeException
ArgumentOutOfRangeException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
TargetInvocationException
TypeLoadException
-
CreateInstance
public static ObjectHandle CreateInstance(ActivationContext activationContext) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, NotImplementedException, MemberAccessException, PolicyException, OverflowException, RankException, NullReferenceException, RemotingException, InvalidCastException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
NotSupportedException
IndexOutOfRangeException
InvalidOperationException
NotImplementedException
MemberAccessException
PolicyException
OverflowException
RankException
NullReferenceException
RemotingException
InvalidCastException
-
CreateInstance
public static ObjectHandle CreateInstance(ActivationContext activationContext, String[] activationCustomData) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, NotImplementedException, OutOfMemoryException, MemberAccessException, PolicyException, OverflowException, RankException, TargetParameterCountException, RemotingException, InvalidCastException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
IndexOutOfRangeException
InvalidOperationException
NotImplementedException
OutOfMemoryException
MemberAccessException
PolicyException
OverflowException
RankException
TargetParameterCountException
RemotingException
InvalidCastException
-
CreateInstance
public static ObjectHandle CreateInstance(ActivationContext dupParam0, JCORefOut dupParam1) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, NotImplementedException, OutOfMemoryException, MemberAccessException, PolicyException, OverflowException, RankException, TargetParameterCountException, RemotingException, InvalidCastException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
IndexOutOfRangeException
InvalidOperationException
NotImplementedException
OutOfMemoryException
MemberAccessException
PolicyException
OverflowException
RankException
TargetParameterCountException
RemotingException
InvalidCastException
-
CreateInstance
public static ObjectHandle CreateInstance(AppDomain domain, String assemblyName, String typeName) throws Throwable, ArgumentNullException, SecurityException, NullReferenceException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, TypeLoadException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
-
CreateInstance
public static ObjectHandle CreateInstance(AppDomain domain, String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws Throwable, ArgumentNullException, SecurityException, NullReferenceException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, TypeLoadException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
-
CreateInstance
public static ObjectHandle CreateInstance(AppDomain domain, String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityAttributes) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, SecurityException, NullReferenceException, ArgumentException, IndexOutOfRangeException, TypeLoadException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
-
CreateInstance
public static ObjectHandle CreateInstance(String assemblyName, String typeName) throws Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
- Throws:
Throwable
InvalidOperationException
NotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
PathTooLongException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
-
CreateInstance
public static ObjectHandle CreateInstance(String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
- Throws:
Throwable
InvalidOperationException
NotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
PathTooLongException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
-
CreateInstance
public static ObjectHandle CreateInstance(String assemblyName, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityInfo) throws Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
- Throws:
Throwable
InvalidOperationException
NotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
PathTooLongException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
-
CreateInstance
public static ObjectHandle CreateInstance(String assemblyName, String typeName, NetObject[] activationAttributes) throws Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PathTooLongException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException
- Throws:
Throwable
InvalidOperationException
NotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
PathTooLongException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
-
CreateInstanceFrom
public static ObjectHandle CreateInstanceFrom(AppDomain domain, String assemblyFile, String typeName) throws Throwable, ArgumentNullException, SecurityException, NullReferenceException, NotSupportedException, NotImplementedException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException
-
CreateInstanceFrom
public static ObjectHandle CreateInstanceFrom(AppDomain domain, String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws Throwable, ArgumentNullException, SecurityException, NullReferenceException, InvalidOperationException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, NotImplementedException, MissingMethodException, TargetInvocationException, FormatException
-
CreateInstanceFrom
public static ObjectHandle CreateInstanceFrom(AppDomain domain, String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityAttributes) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, SecurityException, NullReferenceException, ArgumentException, ArgumentOutOfRangeException, NotImplementedException, MissingMethodException, TargetInvocationException, FormatException
-
CreateInstanceFrom
public static ObjectHandle CreateInstanceFrom(String assemblyFile, String typeName) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException
-
CreateInstanceFrom
public static ObjectHandle CreateInstanceFrom(String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, FormatException
-
CreateInstanceFrom
public static ObjectHandle CreateInstanceFrom(String assemblyFile, String typeName, boolean ignoreCase, BindingFlags bindingAttr, Binder binder, NetObject[] args, CultureInfo culture, NetObject[] activationAttributes, Evidence securityInfo) throws Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, FormatException
-
CreateInstanceFrom
public static ObjectHandle CreateInstanceFrom(String assemblyFile, String typeName, NetObject[] activationAttributes) throws Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, FormatException
-
GetTypeInfoCount
@Deprecated public void GetTypeInfoCount(JCORefOut<UInt32> pcTInfo) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static To_Activator method available in _Activator to obtain an object with an invocable method- Throws:
Throwable
-
-