Package org.openspaces.pu.container.jee
Class PortGenerator
java.lang.Object
org.openspaces.pu.container.jee.PortGenerator
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean
A port generator that accepts a basePort and a portOffest and simply adds them.
- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPort()booleanvoidsetBasePort(int basePort) voidsetPortOffset(int portOffset)
-
Constructor Details
-
PortGenerator
public PortGenerator()
-
-
Method Details
-
setBasePort
public void setBasePort(int basePort) -
setPortOffset
public void setPortOffset(int portOffset) -
getPort
public int getPort() -
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-