GigaSpaces XAP 9.7.2 API

org.openspaces.pu.container.jee
Class PortGenerator

java.lang.Object
  extended by org.openspaces.pu.container.jee.PortGenerator
All Implemented Interfaces:
FactoryBean

public class PortGenerator
extends Object
implements FactoryBean

A port generator that accepts a basePort and a portOffest and simply adds them.

Author:
kimchy

Constructor Summary
PortGenerator()
           
 
Method Summary
 Object getObject()
           
 Class getObjectType()
           
 int getPort()
           
 boolean isSingleton()
           
 void setBasePort(int basePort)
           
 void setPortOffset(int portOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortGenerator

public PortGenerator()
Method Detail

setBasePort

public void setBasePort(int basePort)

setPortOffset

public void setPortOffset(int portOffset)

getPort

public int getPort()

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.