public interface Locator
Provides methods for locating entities. A name references the method of how to locate the entity.
Object lookup(String name, Object... parameters)
If one entity is located then the object should directly be returned.
If multiple are located then a 'Collection
', containing the entities,
should be returned. If no entities are located then null
should
be returned.
name
- the name that indicates how to do the lookupparameters
- the array of parametersOperationNotSupportedException
- if the operation is not supportedObject lookup(String name, Map<String,?> parameters)
If one entity is located then the object should directly be returned.
If multiple are located then a 'Collection
', containing the entities,
should be returned. If no entities are located then null
should
be returned.
name
- the name that indicates how to do the lookupparameters
- the map of parametersOperationNotSupportedException
- if the operation is not supportedCopyright © 2020. All rights reserved.