|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ServiceLocator | |
|---|---|
| org.glassfish.hk2.api | |
| org.glassfish.hk2.extension | |
| org.glassfish.hk2.internal | |
| org.glassfish.hk2.utilities | |
| Uses of ServiceLocator in org.glassfish.hk2.api |
|---|
| Methods in org.glassfish.hk2.api that return ServiceLocator | |
|---|---|
abstract ServiceLocator |
ServiceLocatorFactory.create(String name)
Creates (or finds) a ServiceLocator. |
abstract ServiceLocator |
ServiceLocatorFactory.create(String name,
ServiceLocator parent)
Creates or finds a ServiceLocator. |
abstract ServiceLocator |
ServiceLocatorFactory.create(String name,
ServiceLocator parent,
ServiceLocatorGenerator generator)
Creates or finds a ServiceLocator. |
abstract ServiceLocator |
ServiceLocatorFactory.find(String name)
Finds the ServiceLocator with this name |
| Methods in org.glassfish.hk2.api with parameters of type ServiceLocator | |
|---|---|
abstract ServiceLocator |
ServiceLocatorFactory.create(String name,
ServiceLocator parent)
Creates or finds a ServiceLocator. |
abstract ServiceLocator |
ServiceLocatorFactory.create(String name,
ServiceLocator parent,
ServiceLocatorGenerator generator)
Creates or finds a ServiceLocator. |
abstract void |
ServiceLocatorFactory.destroy(ServiceLocator locator)
Removes the given ServiceLocator |
| Uses of ServiceLocator in org.glassfish.hk2.extension |
|---|
| Methods in org.glassfish.hk2.extension that return ServiceLocator | |
|---|---|
ServiceLocator |
ServiceLocatorGenerator.create(String name,
ServiceLocator parent)
Creates the ServiceLocator that will be used to generate the ServiceLocators |
| Methods in org.glassfish.hk2.extension with parameters of type ServiceLocator | |
|---|---|
ServiceLocator |
ServiceLocatorGenerator.create(String name,
ServiceLocator parent)
Creates the ServiceLocator that will be used to generate the ServiceLocators |
| Uses of ServiceLocator in org.glassfish.hk2.internal |
|---|
| Methods in org.glassfish.hk2.internal that return ServiceLocator | |
|---|---|
ServiceLocator |
ServiceLocatorFactoryImpl.create(String name)
|
ServiceLocator |
ServiceLocatorFactoryImpl.create(String name,
ServiceLocator parent)
|
ServiceLocator |
ServiceLocatorFactoryImpl.create(String name,
ServiceLocator parent,
ServiceLocatorGenerator generator)
|
ServiceLocator |
ServiceLocatorFactoryImpl.find(String name)
|
| Methods in org.glassfish.hk2.internal with parameters of type ServiceLocator | |
|---|---|
ServiceLocator |
ServiceLocatorFactoryImpl.create(String name,
ServiceLocator parent)
|
ServiceLocator |
ServiceLocatorFactoryImpl.create(String name,
ServiceLocator parent,
ServiceLocatorGenerator generator)
|
void |
ServiceLocatorFactoryImpl.destroy(ServiceLocator locator)
|
| Uses of ServiceLocator in org.glassfish.hk2.utilities |
|---|
| Methods in org.glassfish.hk2.utilities that return ServiceLocator | |
|---|---|
static ServiceLocator |
ServiceLocatorUtilities.bind(Binder... binders)
This method will create or find a ServiceLocator with the name "default" and bind all of the binders given together in a single config transaction. |
static ServiceLocator |
ServiceLocatorUtilities.bind(String name,
Binder... binders)
This method will create or find a ServiceLocator with the given name and bind all of the binders given together in a single config transaction. |
| Methods in org.glassfish.hk2.utilities with parameters of type ServiceLocator | ||
|---|---|---|
static
|
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
Object constant)
This method adds one existing object to the given service locator. |
|
static
|
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
Object constant,
String name,
Type... contracts)
This method adds one existing object to the given service locator. |
|
static
|
ServiceLocatorUtilities.addOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
It is very often the case that one wishes to add a single descriptor to a service locator. |
|
static void |
ServiceLocatorUtilities.bind(ServiceLocator locator,
Binder... binders)
This method will bind all of the binders given together in a single config transaction. |
|
static DynamicConfiguration |
ServiceLocatorUtilities.createDynamicConfiguration(ServiceLocator locator)
This method returns a DynamicConfiguration for use with adding
and removing services to the given ServiceLocator. |
|
static void |
ServiceLocatorUtilities.enablePerThreadScope(ServiceLocator locator)
This method will add the ability to use the PerThread scope to
the given locator. |
|
static
|
ServiceLocatorUtilities.findOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
Finds a descriptor in the given service locator. |
|
static
|
ServiceLocatorUtilities.findOrCreateService(ServiceLocator locator,
Class<T> type,
Annotation... qualifiers)
This method will first attempt to find a service corresponding to the type and qualifiers passed in to the method, and if one is found simply returns it. |
|
static
|
ServiceLocatorUtilities.getService(ServiceLocator locator,
Descriptor descriptor)
Returns the service in this service locator given the current descriptor. |
|
static
|
ServiceLocatorUtilities.getService(ServiceLocator locator,
String className)
Returns the best service matching the passed in fully qualified class name of the service |
|
static void |
ServiceLocatorUtilities.removeFilter(ServiceLocator locator,
Filter filter)
Removes all the descriptors from the given locator that match the given filter |
|
static void |
ServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
This method will attempt to remove descriptors matching the passed in descriptor from the given locator. |
|
| Constructors in org.glassfish.hk2.utilities with parameters of type ServiceLocator | |
|---|---|
AliasDescriptor(ServiceLocator locator,
ActiveDescriptor<T> descriptor,
String contract,
String name)
Construct an AliasDescriptor. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||