public final class ServiceLocatorBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceLocatorBuilder.LocalServiceLocatorBuilder
Helper class to build local ServiceLocator instances
|
static class |
ServiceLocatorBuilder.RemoteServiceLocatorBuilder
Helper class to build remote ServiceLocator instances
|
| Constructor and Description |
|---|
ServiceLocatorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static ServiceLocatorBuilder.LocalServiceLocatorBuilder |
buildLocal()
Gets a builder to create a new Local ServiceLocator, i.e.
|
static ServiceLocatorBuilder.RemoteServiceLocatorBuilder |
buildRemote()
Gets a builder to create a new Remote ServiceLocator, i.e.
|
static ServiceLocator |
createLocalByBeanManager(javax.enterprise.inject.spi.BeanManager bm)
Creates a local (CDI) ServiceLocator using the specified BeanManager implementation.
|
static JndiServiceLocator |
createRemoteByConfigurationFiles()
Builds a remote service locator based on the values of configuration properties
using the default JU Property chain.
|
public static ServiceLocatorBuilder.RemoteServiceLocatorBuilder buildRemote()
Uses remote-naming for the lookup.
public static JndiServiceLocator createRemoteByConfigurationFiles()
public static ServiceLocatorBuilder.LocalServiceLocatorBuilder buildLocal()
public static ServiceLocator createLocalByBeanManager(javax.enterprise.inject.spi.BeanManager bm)
The BeanManager should be provided by the CDI container implementation we're using (e.g. Weld)
bm - BeanManager used to perform the CDI lookupsCopyright © 2015. All rights reserved.