|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.services.ServicesInjectorAbstract
public abstract class ServicesInjectorAbstract
| Constructor Summary | |
|---|---|
ServicesInjectorAbstract()
|
|
| Method Summary | |
|---|---|
void |
close()
Indicates to the component that no more requests will be made of it and it can safely release any services it has hold of. |
DomainObjectContainer |
getContainer()
|
java.util.List<java.lang.Object> |
getRegisteredServices()
All registered services, as an immutable List. |
void |
injectDependencies(java.util.List<java.lang.Object> objects)
As per ServicesInjector.injectDependencies(Object), but for all objects in the list. |
void |
injectDependencies(java.lang.Object object)
Inject all services and the container into the object. |
void |
injectInto(java.lang.Object candidate)
That is, injecting this injector... |
void |
open()
Ensure that all services are wired into each other. |
void |
setContainer(DomainObjectContainer container)
Container to inject. |
void |
setServices(java.util.List<java.lang.Object> services)
Services to be injected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServicesInjectorAbstract()
| Method Detail |
|---|
public void open()
open in interface SessionScopedComponentpublic void close()
SessionScopedComponent
close in interface SessionScopedComponentpublic DomainObjectContainer getContainer()
getContainer in interface ServicesInjectorpublic void setContainer(DomainObjectContainer container)
ServicesInjectorThis itself is injected.
setContainer in interface ServicesInjectorpublic void setServices(java.util.List<java.lang.Object> services)
ServicesInjector
Should automatically inject all services into each other (though calling
SessionScopedComponent.open() will also do this).
setServices in interface ServicesInjectorpublic java.util.List<java.lang.Object> getRegisteredServices()
ServicesInjectorList.
Does not include the container.
getRegisteredServices in interface ServicesInjectorpublic void injectDependencies(java.lang.Object object)
ServicesInjector
injectDependencies in interface ServicesInjectorpublic void injectDependencies(java.util.List<java.lang.Object> objects)
ServicesInjectorServicesInjector.injectDependencies(Object), but for all objects in the list.
injectDependencies in interface ServicesInjectorpublic void injectInto(java.lang.Object candidate)
injectInto in interface Injectable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||