Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
top

In This Section

Table of Contents
maxLevel2

...

  1. Add a dependency on the SessionManager in the Activator
  2. Add a private property and public setter in the implementation

 

 

Add a Dependency on the SessionManager in the Activator

To add a dependency on the SessionManager add the following lines to the component definition that is present in the activator.java:

...

Note

The property setDependencies is usually set for the component with an empty array. Be sure to remove the empty occurrence of that property.

 

Back to Top

 

...

 

Add the Private Property and Public Setter

The dependency injection mechanism of the XperienCentral framework will inject an instance of the SessionManager into components that depends on the SessionManager. The only thing the implementation class (e.g. myServiceImpl.java) needs to have is a private member with a SessionManager class:

...