public interface ServicesInjector extends Injectable
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getRegisteredServices()
All registered services, as an immutable
List. |
void |
injectServicesInto(List<Object> objects)
As per
injectServicesInto(Object), but for all objects in the
list. |
void |
injectServicesInto(Object domainObject)
Provided by the ServicesInjectorDefault when used by framework.
|
<T> T |
lookupService(Class<T> serviceClass)
Returns the first registered domain service implementing the requested type.
|
<T> List<T> |
lookupServices(Class<T> serviceClass)
Returns all domain services implementing the requested type, in the order
that they were registered in isis.properties.
|
injectIntoList<Object> getRegisteredServices()
List.
Does not include the container.
void injectServicesInto(Object domainObject)
Called in multiple places from metamodel and facets.
void injectServicesInto(List<Object> objects)
injectServicesInto(Object), but for all objects in the
list.<T> T lookupService(Class<T> serviceClass)
Typically there will only ever be one domain service implementing a given type,
(eg PublishingService), but for some services there can be more than one
(eg ExceptionRecognizer).
lookupServices(Class)<T> List<T> lookupServices(Class<T> serviceClass)
Typically there will only ever be one domain service implementing a given type,
(eg PublishingService), but for some services there can be more than one
(eg ExceptionRecognizer).
lookupService(Class)Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.