| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | Returns: The current number of children locators attached to this ServiceLocatorReturns the current total number of children attached to this ServiceLocator |
| public int | Returns: The number of services in this ServiceLocator (does not include services in the parent locator)Returns the total number of descriptors in this ServiceLocator. |
| public int | Returns: The current size of the HK2 reflection cacheReturns the current size of the HK2 reflection cache. |
| public int | Returns: The maximum number of entries allowed in the HK2 service cacheReturns the maximum number of entries allowed in the HK2 service cache. |
| public int | Returns: The current size of the HK2 service cacheReturns the current size of the HK2 service cache. |
| clearReflectionCache | back to summary |
|---|---|
| public void clearReflectionCache() Clears all entries from the HK2 reflection cache. The reflection cache is used to minimize the amount of reflection done by HK2. Calling this method may free up memory but will cause degraded service creation performance until the cache can be built back up | |
| clearServiceCache | back to summary |
|---|---|
| public void clearServiceCache() Clears all entries from the HK2 service cache. The service cache is used to optimize frequent service lookups and injections. Calling this method may free up memory but will cause degraded injection and lookup performance until the cache can be built back up | |
| getNumberOfChildren | back to summary |
|---|---|
| public int getNumberOfChildren() Returns the current total number of children attached to this ServiceLocator
| |
| getNumberOfDescriptors | back to summary |
|---|---|
| public int getNumberOfDescriptors() Returns the total number of descriptors in this ServiceLocator. Does not include parent services
| |
| getReflectionCacheSize | back to summary |
|---|---|
| public int getReflectionCacheSize() Returns the current size of the HK2 reflection cache. The reflection cache is used to minimize the amount of reflection done by HK2
| |
| getServiceCacheMaximumSize | back to summary |
|---|---|
| public int getServiceCacheMaximumSize() Returns the maximum number of entries allowed in the HK2 service cache. The service cache is used to optimize frequent service lookups and injections
| |
| getServiceCacheSize | back to summary |
|---|---|
| public int getServiceCacheSize() Returns the current size of the HK2 service cache. The service cache is used to optimize frequent service lookups and injections
| |