Top Fields Constructors Methods
org.jvnet.hk2.internal

public Class ServiceLocatorRuntimeImpl

extends Object
implements ServiceLocatorRuntimeBean
Class Inheritance
All Implemented Interfaces
org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean
Annotations
@Singleton
@Visibility:LOCAL
Imports
jakarta.inject.Inject, .Singleton, org.glassfish.hk2.api.DescriptorVisibility, .ServiceLocator, .Visibility, org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean

Author
jwells

Field Summary

Modifier and TypeField and Description
private final ServiceLocatorImpl

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
clearReflectionCache()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.clearReflectionCache.

Clears all entries from the HK2 reflection cache.

public void
clearServiceCache()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.clearServiceCache.

Clears all entries from the HK2 service cache.

public int
getNumberOfChildren()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getNumberOfChildren.

Returns the current total number of children attached to this ServiceLocator

public int
getNumberOfDescriptors()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getNumberOfDescriptors.

Returns the total number of descriptors in this ServiceLocator.

public int
getReflectionCacheSize()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getReflectionCacheSize.

Returns the current size of the HK2 reflection cache.

public int
getServiceCacheMaximumSize()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getServiceCacheMaximumSize.

Returns the maximum number of entries allowed in the HK2 service cache.

public int
getServiceCacheSize()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getServiceCacheSize.

Returns the current size of the HK2 service cache.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

locatorback to summary
private final ServiceLocatorImpl locator

Constructor Detail

ServiceLocatorRuntimeImplback to summary
private ServiceLocatorRuntimeImpl(ServiceLocator locator)
Annotations
@Inject

Method Detail

clearReflectionCacheback to summary
public void clearReflectionCache()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.clearReflectionCache.

Doc from org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.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

Annotations
@Override
clearServiceCacheback to summary
public void clearServiceCache()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.clearServiceCache.

Doc from org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.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

Annotations
@Override
getNumberOfChildrenback to summary
public int getNumberOfChildren()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getNumberOfChildren.

Doc from org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getNumberOfChildren.

Returns the current total number of children attached to this ServiceLocator

Annotations
@Override
getNumberOfDescriptorsback to summary
public int getNumberOfDescriptors()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getNumberOfDescriptors.

Doc from org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getNumberOfDescriptors.

Returns the total number of descriptors in this ServiceLocator. Does not include parent services

Annotations
@Override
getReflectionCacheSizeback to summary
public int getReflectionCacheSize()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getReflectionCacheSize.

Doc from org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getReflectionCacheSize.

Returns the current size of the HK2 reflection cache. The reflection cache is used to minimize the amount of reflection done by HK2

Annotations
@Override
getServiceCacheMaximumSizeback to summary
public int getServiceCacheMaximumSize()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getServiceCacheMaximumSize.

Doc from org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.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

Annotations
@Override
getServiceCacheSizeback to summary
public int getServiceCacheSize()

Implements org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getServiceCacheSize.

Doc from org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean.getServiceCacheSize.

Returns the current size of the HK2 service cache. The service cache is used to optimize frequent service lookups and injections

Annotations
@Override