@Singleton @Visibility(value=LOCAL) public class ServiceLocatorRuntimeImpl extends java.lang.Object implements ServiceLocatorRuntimeBean
Modifier and Type | Field and Description |
---|---|
private ServiceLocatorImpl |
locator |
Modifier | Constructor and Description |
---|---|
private |
ServiceLocatorRuntimeImpl(ServiceLocator locator) |
Modifier and Type | Method and Description |
---|---|
void |
clearReflectionCache()
Clears all entries from the HK2 reflection
cache.
|
void |
clearServiceCache()
Clears all entries from the HK2 service cache.
|
int |
getNumberOfChildren()
Returns the current total number of children
attached to this ServiceLocator
|
int |
getNumberOfDescriptors()
Returns the total number of descriptors
in this ServiceLocator.
|
int |
getReflectionCacheSize()
Returns the current size of the HK2 reflection
cache.
|
int |
getServiceCacheMaximumSize()
Returns the maximum number of entries allowed
in the HK2 service cache.
|
int |
getServiceCacheSize()
Returns the current size of the HK2 service
cache.
|
private final ServiceLocatorImpl locator
@Inject private ServiceLocatorRuntimeImpl(ServiceLocator locator)
public int getNumberOfDescriptors()
ServiceLocatorRuntimeBean
getNumberOfDescriptors
in interface ServiceLocatorRuntimeBean
public int getNumberOfChildren()
ServiceLocatorRuntimeBean
getNumberOfChildren
in interface ServiceLocatorRuntimeBean
public int getServiceCacheSize()
ServiceLocatorRuntimeBean
getServiceCacheSize
in interface ServiceLocatorRuntimeBean
public int getServiceCacheMaximumSize()
ServiceLocatorRuntimeBean
getServiceCacheMaximumSize
in interface ServiceLocatorRuntimeBean
public void clearServiceCache()
ServiceLocatorRuntimeBean
clearServiceCache
in interface ServiceLocatorRuntimeBean
public int getReflectionCacheSize()
ServiceLocatorRuntimeBean
getReflectionCacheSize
in interface ServiceLocatorRuntimeBean
public void clearReflectionCache()
ServiceLocatorRuntimeBean
clearReflectionCache
in interface ServiceLocatorRuntimeBean