Package org.iplass.mtp.runtime
Interface EntryPointBuilder
public interface EntryPointBuilder
Builder of EntryPoint.
-
Method Summary
Modifier and Type Method Description EntryPointbuild()Build a EntryPoint.EntryPointBuilderconfig(java.lang.String configFileName)Specify the path of the configuration file (service-config.xml).EntryPointBuildercrypt(java.lang.String configCryptFileName)To encrypt service-config.xml, specify the path of the encryption configuration file (crypt.properties).EntryPointBuilderloader(java.lang.String loaderClassName)Specify the ConfigLoader class name to load the configuration file.EntryPointBuilderproperty(java.lang.String name, java.lang.String value)Set the iPLAss Bootstrap property.EntryPointBuilderserverEnvFile(java.lang.String serverEnvFile)Specify the path of the property file where the iPLAss Bootstrap property is specified.EntryPointBuilderserverId(java.lang.String serverId)Specify the serverId of this iPLAsss instance.EntryPointBuilderserverRole(java.lang.String... serverRole)Specify the serverRole of this iPLAsss instance as needed.
-
Method Details
-
build
EntryPoint build()Build a EntryPoint. If there is an EntryPoint that has already been initialized, an AlreadyInitializedException is thrown.- Returns:
- EntryPoint instance
- Throws:
AlreadyInitializedException- When EntryPoint has already been initialized
-
serverEnvFile
Specify the path of the property file where the iPLAss Bootstrap property is specified. If serverEnvFile is not specified, system properties are used as Bootstrap properties.- Parameters:
serverEnvFile-- Returns:
-
serverId
Specify the serverId of this iPLAsss instance. If not specified, the Host name will be serverId.- Parameters:
serverId-- Returns:
-
serverRole
Specify the serverRole of this iPLAsss instance as needed.- Parameters:
serverRole-- Returns:
-
config
Specify the path of the configuration file (service-config.xml). If not specified, the default value is "/mtp-service-config.xml".- Parameters:
configFileName-- Returns:
-
crypt
To encrypt service-config.xml, specify the path of the encryption configuration file (crypt.properties).- Parameters:
configCryptFileName-- Returns:
-
loader
Specify the ConfigLoader class name to load the configuration file. If not specified, the default loader will be used.- Parameters:
loaderClassName-- Returns:
-
property
Set the iPLAss Bootstrap property.- Parameters:
name-value-- Returns:
-