Interface OptionalCommonServiceInterface<S>
- Type Parameters:
S- the entity type returned by the service implementation
- All Known Implementing Classes:
ComputerSystemProductService,MainboardService
public interface OptionalCommonServiceInterface<S>
Common service interface whose method implementations provide a way to fetch WMI data from Powershell
in the form of
Optional- Since:
- 2.2.0
- Author:
- Egg-03
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionget()Implementations of this method are expected to query the Powershell using methods that automatically handle the Powershell process lifecycle and then useMapperUtilto map the results to the expected entity typesget(com.profesorfalken.jpowershell.PowerShell powerShell) Implementations of this method are expected to query the Powershell using methods that delegate the responsibility of managing the Powershell session to the caller
-
Method Details
-
get
Implementations of this method are expected to query the Powershell using methods that automatically handle the Powershell process lifecycle and then useMapperUtilto map the results to the expected entity types- Returns:
- an
Optionalentity of type<S>defined by the caller
-
get
Implementations of this method are expected to query the Powershell using methods that delegate the responsibility of managing the Powershell session to the caller- Parameters:
powerShell- the caller-managed powershell session passed to the method- Returns:
- an
Optionalentity of type<S>defined by the caller
-