Overview | Namespace | Class | Index | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
virtual | abstract | interface | template |
NO | NO | NO | NO |
Objects of this class are used for applying a current context until they are destructed, i.e. the ctor of this class saves the previous and sets the given context while the dtor restores the previous one upon destruction.
Methods |
|
ContextLayer( const Reference< XCurrentContext > & xNewContext = Reference < XCurrentContext > ) throw( ); |
Constructor: Saves the previous context and sets the new (given) one. |
~ContextLayer( ) throw( ); |
Destructor: restores the previous context. |
Reference< XCurrentContext > getPreviousContext( ) const throw( ); |
Gets the previously set context. |
Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.