Package system.serviceprocess
Class ServiceProcessInstaller
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.configuration.install.Installer
-
- system.configuration.install.ComponentInstaller
-
- system.serviceprocess.ServiceProcessInstaller
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class ServiceProcessInstaller extends ComponentInstaller
The base .NET class managing System.ServiceProcess.ServiceProcessInstaller, System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.ServiceProcess.ServiceProcessInstaller
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.ServiceProcessstatic java.lang.String
className
Qualified class name: System.ServiceProcess.ServiceProcessInstallerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ServiceProcessInstaller()
ServiceProcessInstaller(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceProcessInstaller
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoServiceProcessInstaller
, a cast assert is made to check if types are compatible.void
CopyFromComponent(IComponent comp)
ServiceAccount
getAccount()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typejava.lang.String
getPassword()
java.lang.String
getUsername()
void
Install(IDictionary stateSaver)
void
Rollback(IDictionary savedState)
void
setAccount(ServiceAccount Account)
void
setJCOInstance(JCObject instance)
void
setPassword(java.lang.String Password)
void
setUsername(java.lang.String Username)
-
Methods inherited from class system.configuration.install.ComponentInstaller
IsEquivalentInstaller
-
Methods inherited from class system.configuration.install.Installer
addAfterInstall, addAfterRollback, addAfterUninstall, addBeforeInstall, addBeforeRollback, addBeforeUninstall, addCommitted, addCommitting, Commit, getContext, getHelpText, getInstallers, getParent, removeAfterInstall, removeAfterRollback, removeAfterUninstall, removeBeforeInstall, removeBeforeRollback, removeBeforeUninstall, removeCommitted, removeCommitting, setContext, setParent, Uninstall
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.ServiceProcess- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.ServiceProcess.ServiceProcessInstaller- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceProcessInstaller
public ServiceProcessInstaller(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
ServiceProcessInstaller
public ServiceProcessInstaller() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classComponentInstaller
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classComponentInstaller
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.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 classComponentInstaller
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classComponentInstaller
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponentInstaller
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponentInstaller
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ServiceProcessInstaller cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoServiceProcessInstaller
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ServiceProcessInstaller
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CopyFromComponent
public void CopyFromComponent(IComponent comp) throws java.lang.Throwable
- Overrides:
CopyFromComponent
in classComponentInstaller
- Throws:
java.lang.Throwable
-
Install
public void Install(IDictionary stateSaver) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, PlatformNotSupportedException, Win32Exception, IOException, NotSupportedException, NullReferenceException, InvalidEnumArgumentException, SecurityException, MulticastNotSupportedException, RankException, OutOfMemoryException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Overrides:
Install
in classInstaller
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
PlatformNotSupportedException
Win32Exception
IOException
NotSupportedException
NullReferenceException
InvalidEnumArgumentException
SecurityException
MulticastNotSupportedException
RankException
OutOfMemoryException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
Rollback
public void Rollback(IDictionary savedState) throws java.lang.Throwable, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, ArgumentException, Win32Exception, KeyNotFoundException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SerializationException, FormatException, OverflowException
- Overrides:
Rollback
in classInstaller
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
InvalidOperationException
ArgumentNullException
IndexOutOfRangeException
ArgumentException
Win32Exception
KeyNotFoundException
MissingMethodException
TargetInvocationException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SerializationException
FormatException
OverflowException
-
getAccount
public ServiceAccount getAccount() throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, Win32Exception, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, IOException, NotSupportedException, NullReferenceException, InvalidEnumArgumentException, SecurityException, MulticastNotSupportedException, RankException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
Win32Exception
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
IOException
NotSupportedException
NullReferenceException
InvalidEnumArgumentException
SecurityException
MulticastNotSupportedException
RankException
OutOfMemoryException
-
setAccount
public void setAccount(ServiceAccount Account) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPassword
public java.lang.String getPassword() throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, Win32Exception, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, IOException, NotSupportedException, NullReferenceException, InvalidEnumArgumentException, SecurityException, MulticastNotSupportedException, RankException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
Win32Exception
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
IOException
NotSupportedException
NullReferenceException
InvalidEnumArgumentException
SecurityException
MulticastNotSupportedException
RankException
OutOfMemoryException
-
setPassword
public void setPassword(java.lang.String Password) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUsername
public java.lang.String getUsername() throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, Win32Exception, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, IOException, NotSupportedException, NullReferenceException, InvalidEnumArgumentException, SecurityException, MulticastNotSupportedException, RankException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
Win32Exception
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
IOException
NotSupportedException
NullReferenceException
InvalidEnumArgumentException
SecurityException
MulticastNotSupportedException
RankException
OutOfMemoryException
-
setUsername
public void setUsername(java.lang.String Username) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-