org.jvnet.hk2.component
Interface SimpleServiceLocator

All Superinterfaces:
BaseServiceLocator
All Known Implementing Classes:
Habitat

Deprecated.

@Deprecated
public interface SimpleServiceLocator
extends BaseServiceLocator

Provide a simple abstraction for getting services by contract or type.

Author:
Jerome Dochez, Jeff Trent

Method Summary
<T> Collection<Inhabitant<T>>
getInhabitantsByContract(String contractName)
          Deprecated.  
<T> Collection<Inhabitant<T>>
getInhabitantsByContract(Type contract)
          Deprecated. Gets all the inhabitants that has the given contract.
<T> Collection<Inhabitant<T>>
getInhabitantsByType(Class<T> type)
          Deprecated. Gets all the inhabitants that has the given type.
<T> Collection<Inhabitant<T>>
getInhabitantsByType(String typeName)
          Deprecated.  
<T> Inhabitant<T>
getProvider(Type type, String name)
          Deprecated. Gets an inhabitant from its type and optionally name
 
Methods inherited from interface org.jvnet.hk2.component.BaseServiceLocator
getAllByContract, getAllByContract, getByContract, getByContract, getByType, getByType, getComponent, getComponent, getComponent
 

Method Detail

getProvider

<T> Inhabitant<T> getProvider(Type type,
                              String name)
Deprecated. 
Gets an inhabitant from its type and optionally name

Parameters:
type - requested inhabitant type
name - optional name

getInhabitantsByContract

<T> Collection<Inhabitant<T>> getInhabitantsByContract(Type contract)
                                                   throws ComponentException
Deprecated. 
Gets all the inhabitants that has the given contract.

Throws:
ComponentException

getInhabitantsByContract

<T> Collection<Inhabitant<T>> getInhabitantsByContract(String contractName)
                                                   throws ComponentException
Deprecated. 
Throws:
ComponentException

getInhabitantsByType

<T> Collection<Inhabitant<T>> getInhabitantsByType(Class<T> type)
                                               throws ComponentException
Deprecated. 
Gets all the inhabitants that has the given type.

Throws:
ComponentException

getInhabitantsByType

<T> Collection<Inhabitant<T>> getInhabitantsByType(String typeName)
                                               throws ComponentException
Deprecated. 
Throws:
ComponentException


Copyright © 2013 Oracle Corporation. All Rights Reserved.