Package system.serviceprocess
Class ServiceInstaller
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class ServiceInstaller extends ComponentInstaller
The base .NET class managing System.ServiceProcess.ServiceInstaller, System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.ServiceProcess.ServiceInstaller
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.ServiceInstallerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ServiceInstaller()
ServiceInstaller(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceInstaller
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoServiceInstaller
, a cast assert is made to check if types are compatible.void
CopyFromComponent(IComponent component)
boolean
getDelayedAutoStart()
java.lang.String
getDescription()
java.lang.String
getDisplayName()
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
getServiceName()
java.lang.String[]
getServicesDependedOn()
ServiceStartMode
getStartType()
void
Install(IDictionary stateSaver)
boolean
IsEquivalentInstaller(ComponentInstaller otherInstaller)
void
Rollback(IDictionary savedState)
void
setDelayedAutoStart(boolean DelayedAutoStart)
void
setDescription(java.lang.String Description)
void
setDisplayName(java.lang.String DisplayName)
void
setJCOInstance(JCObject instance)
void
setServiceName(java.lang.String ServiceName)
void
setServicesDependedOn(java.lang.String[] ServicesDependedOn)
void
setStartType(ServiceStartMode StartType)
void
Uninstall(IDictionary savedState)
-
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
-
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.ServiceInstaller- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceInstaller
public ServiceInstaller(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
ServiceInstaller
public ServiceInstaller() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, NotSupportedException, InvalidOperationException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
NotSupportedException
InvalidOperationException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidEnumArgumentException
-
-
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 ServiceInstaller cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoServiceInstaller
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ServiceInstaller
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsEquivalentInstaller
public boolean IsEquivalentInstaller(ComponentInstaller otherInstaller) throws java.lang.Throwable
- Overrides:
IsEquivalentInstaller
in classComponentInstaller
- Throws:
java.lang.Throwable
-
CopyFromComponent
public void CopyFromComponent(IComponent component) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Overrides:
CopyFromComponent
in classComponentInstaller
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
-
Install
public void Install(IDictionary stateSaver) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, NullReferenceException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, PlatformNotSupportedException, Win32Exception, InvalidEnumArgumentException, MulticastNotSupportedException, OutOfMemoryException
- Overrides:
Install
in classInstaller
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
NullReferenceException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
PlatformNotSupportedException
Win32Exception
InvalidEnumArgumentException
MulticastNotSupportedException
OutOfMemoryException
-
Rollback
public void Rollback(IDictionary savedState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SerializationException, FormatException, OverflowException, Win32Exception, PlatformNotSupportedException, OutOfMemoryException, InvalidEnumArgumentException, TimeoutException, AbandonedMutexException
- Overrides:
Rollback
in classInstaller
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SerializationException
FormatException
OverflowException
Win32Exception
PlatformNotSupportedException
OutOfMemoryException
InvalidEnumArgumentException
TimeoutException
AbandonedMutexException
-
Uninstall
public void Uninstall(IDictionary savedState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SerializationException, FormatException, OverflowException, Win32Exception, PlatformNotSupportedException, OutOfMemoryException, InvalidEnumArgumentException, TimeoutException, AbandonedMutexException
- Overrides:
Uninstall
in classInstaller
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SerializationException
FormatException
OverflowException
Win32Exception
PlatformNotSupportedException
OutOfMemoryException
InvalidEnumArgumentException
TimeoutException
AbandonedMutexException
-
getDelayedAutoStart
public boolean getDelayedAutoStart() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDelayedAutoStart
public void setDelayedAutoStart(boolean DelayedAutoStart) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getStartType
public ServiceStartMode getStartType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setStartType
public void setStartType(ServiceStartMode StartType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, AbandonedMutexException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
NotSupportedException
NotImplementedException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
AbandonedMutexException
InvalidEnumArgumentException
-
getDescription
public java.lang.String getDescription() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDescription
public void setDescription(java.lang.String Description) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDisplayName
public java.lang.String getDisplayName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDisplayName
public void setDisplayName(java.lang.String DisplayName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getServiceName
public java.lang.String getServiceName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setServiceName
public void setServiceName(java.lang.String ServiceName) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
-
getServicesDependedOn
public java.lang.String[] getServicesDependedOn() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setServicesDependedOn
public void setServicesDependedOn(java.lang.String[] ServicesDependedOn) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-