com.endeca.infront.assembler.util
Interface ObjectLocator
- All Known Implementing Classes:
- SpringUtility
public interface ObjectLocator
ObjectLocator allows the retrieval of services without explicit
injection. This is specifically useful when retrieving Request-based
beans from a singleton.
This should never be used to circumvent dependency injection.
locate
Object locate(String resource)
- Retrieves the requested resource by name. Return an instance,
which may be shared or independent, of the specified object.
- Parameters:
resource
- The resource to retrieve.
- Returns:
- The requested resource. Returns
NULL
if no
object is found for the given ID.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.