Interface ServiceFactoryDescriptor
public interface ServiceFactoryDescriptor
A factory descriptor for Java Service loading.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionCreates the service manager instance.de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetupReturns the AAS setup.getSetup()Returns the service setup.default Class<? extends ServiceSetup> Returns the type of the setup class as fallback.default Class<?>[]getTests(int index) Returns a test represented as it's class for execution in jUnit.de.iip_ecosphere.platform.transport.connectors.TransportSetupReturns the transport setup.
-
Method Details
-
createInstance
ServiceManager createInstance()Creates the service manager instance.- Returns:
- the instance
-
getSetup
ServiceSetup getSetup()Returns the service setup.- Returns:
- the setup
-
getAasSetup
de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetup getAasSetup()Returns the AAS setup.- Returns:
- the setup
-
getTransport
de.iip_ecosphere.platform.transport.connectors.TransportSetup getTransport()Returns the transport setup.- Returns:
- the transport setup
-
getTests
Returns a test represented as it's class for execution in jUnit. This is required if a test running a service manager and other components like AAS as plugins shall get execute a test independently. Delegates the work toTestProviderDescriptor. [testing]- Parameters:
index- a 0-based index of the test/suite to return; usually test and implementing service manager are in close relationship and know the valid indexes- Returns:
- the test classes or null if there is none for the given index
-
getSetupClass
Returns the type of the setup class as fallback.- Returns:
- the type, by default
ServiceSetup
-