new Portal
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()
Content copied to clipboard
Example usage (java):
PortalBuilder builder = PortalManager.newPortal("my_portal");
Portal portal = builder.create();
Content copied to clipboard
Return
a PortalBuilder object that has a fluent API to construct a Portal
Parameters
name
the Portal name