EmbeddedServerPortFileWriter@Deprecated public class EmbeddedServerPortFileWriter extends EmbeddedServerPortFileWriter
ApplicationListener that saves embedded server port and management port into
file. This application listener will be triggered whenever the servlet container
starts, and the file name can be overridden at runtime with a System property or
environment variable named "PORTFILE" or "portfile".| Constructor and Description |
|---|
EmbeddedServerPortFileWriter()
Deprecated.
Create a new
EmbeddedServerPortFileWriter instance using the filename
'application.port'. |
EmbeddedServerPortFileWriter(File file)
Deprecated.
Create a new
EmbeddedServerPortFileWriter instance with a specified file. |
EmbeddedServerPortFileWriter(String filename)
Deprecated.
Create a new
EmbeddedServerPortFileWriter instance with a specified
filename. |
getPortFile, onApplicationEventpublic EmbeddedServerPortFileWriter()
EmbeddedServerPortFileWriter instance using the filename
'application.port'.public EmbeddedServerPortFileWriter(String filename)
EmbeddedServerPortFileWriter instance with a specified
filename.filename - the name of file containing portpublic EmbeddedServerPortFileWriter(File file)
EmbeddedServerPortFileWriter instance with a specified file.file - the file containing portCopyright © 2016 Pivotal Software, Inc.. All rights reserved.