newPortal

A helper function to build portal classes and add them to the manager. Classes built with newPortal are added to the PortalManager automatically.

Example usage (kotlin):

val builder: PortalBuilder = PortalManager.newPortal("my_portal")
val portal: Portal = builder.create()

Example usage (java):

PortalBuilder builder = PortalManager.newPortal("my_portal");
Portal portal = builder.create();

Return

a PortalBuilder object that has a fluent API to construct a Portal

Parameters

name

the Portal name