This documentation is for WSO2 Carbon 4.4.1. View documentation for the latest release.
Page Comparison - CarbonContext API (v.5 vs v.6) - Carbon 4.3.0 - WSO2 Documentation
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This method retrieves the Registry of the tenant of type RegistryType.

RegistryTypes

  • USERSYSTEM_CONFIGURATION - The system configuration registry of the currently logged in usertenant.USER
  • SYSTEM_GOVERNANCE - The governance registry of the currently logged in user.
  • SYSTEM_CONFIGURATION - The configuration registry of the system.
  • LOCAL_REPOSITORY - The local repository of the system.
  • tenant.
Object getOSGiService(Class clazz)

This method obtains the first instance of the OSGi services found for the interface or class clazz.

Note

Note that this method is deprecated in Carbon 4.3.0. The new method is getOSGiService(Class clazz, Hashtable<String, String> props). 

List<Object> getOSGiServices(Class clazz)

This method obtai ns all OSGi service instances found for interface or class clazz

Note

Note that this method is deprecated in Carbon 4.3.0. The new method is List<Object> getOSGiServices(Class clazz, Hashtable<String, String> props).

Miscellaneous Methods

...