org.nakedobjects.metamodel.commons.component
Interface SessionScopedComponent

All Superinterfaces:
Component
All Known Subinterfaces:
ServicesInjector
All Known Implementing Classes:
ServicesInjectorAbstract, ServicesInjectorDefault

public interface SessionScopedComponent
extends Component

Indicate that the implementing component is scoped at the session level (for a single user) and might also need to be "opened" or "closed" at the start/end of the session.

Analogous to Hibernate's Session.

See Also:
ApplicationScopedComponent, TransactionScopedComponent

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.
 void open()
          Indicates to the component that it is to initialise itself as it will soon be receiving requests.
 

Method Detail

open

void open()
Indicates to the component that it is to initialise itself as it will soon be receiving requests.


close

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.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.