Skip to content

Commit

Permalink
Merge pull request #45 from rapid7/serviceConfigInfo_fixes
Browse files Browse the repository at this point in the history
Changing service config info mandatory params to final
  • Loading branch information
skhare-r7 authored Nov 8, 2017
2 parents 9cbb637 + 68c1999 commit 44d472c
Showing 1 changed file with 10 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
*/

public class ServiceConfigInfo implements IServiceConfigInfo {
private ServiceType serviceType; //defaults
private ServiceStartType startType;
private ServiceError errorControl;
private final ServiceType serviceType;
private final ServiceStartType startType;
private final ServiceError errorControl;
private String binaryPathName;
private String loadOrderGroup;
private int tagId;
Expand All @@ -39,8 +39,14 @@ public class ServiceConfigInfo implements IServiceConfigInfo {
private String password;
private String displayName;

public ServiceConfigInfo()
public ServiceConfigInfo(
ServiceType serviceType,
ServiceStartType startType,
ServiceError errorControl)
{
this.serviceType = serviceType;
this.startType = startType;
this.errorControl = errorControl;
}

public ServiceConfigInfo(ServiceType serviceType,
Expand All @@ -63,21 +69,6 @@ public ServiceConfigInfo(ServiceType serviceType,
this.displayName = displayName;
}

public void setServiceType(ServiceType serviceType)
{
this.serviceType = serviceType;
}

public void setStartType(ServiceStartType startType)
{
this.startType = startType;
}

public void setErrorControl(ServiceError errorControl)
{
this.errorControl = errorControl;
}

public void setBinaryPathName(String binaryPathName)
{
this.binaryPathName = binaryPathName;
Expand Down

0 comments on commit 44d472c

Please sign in to comment.