public class ExtrasUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HK2BRIDGE_LOCATOR_ID
This will be put into the metadata of a descriptor that is bridged from another service locator.
|
static String |
HK2BRIDGE_SERVICE_ID
This will be put into the metadata of a descriptor that is bridged from another service locator.
|
| Constructor and Description |
|---|
ExtrasUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bridgeServiceLocator(ServiceLocator into,
ServiceLocator from)
This method will bridge all non-local services from the
from ServiceLocator into the into ServiceLocator.
|
static void |
enableDefaultInterceptorServiceImplementation(ServiceLocator locator)
This method adds in a default implementation of the
InterceptionService
which uses annotations to denote which services should intercept other services. |
static void |
unbridgeServiceLocator(ServiceLocator into,
ServiceLocator from)
This method will remove all non-local services from the
from ServiceLocator into the into ServiceLocator.
|
public static final String HK2BRIDGE_LOCATOR_ID
public static final String HK2BRIDGE_SERVICE_ID
public static void enableDefaultInterceptorServiceImplementation(ServiceLocator locator)
InterceptionService
which uses annotations to denote which services should intercept other services. For more
information see the org.glassfish.hk2.extras.interception package. This method is
idempotent, if the service is already available it will not add itlocator - The locator to add the default interception service implementation to. May not be nullpublic static void bridgeServiceLocator(ServiceLocator into, ServiceLocator from)
into - The non-null ServiceLocator that will have services added
to it from the from ServiceLocatorfrom - The non-null ServiceLocator that will add services to the
into ServiceLocatorpublic static void unbridgeServiceLocator(ServiceLocator into, ServiceLocator from)
into - The non-null ServiceLocator that will have services added
to it from the from ServiceLocatorfrom - The non-null ServiceLocator that will add services to the
into ServiceLocatorCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.