|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LifeCycle
Contains user-defined properties applicable to a particular
custom object and/or to an entire Identity Manager environment.
These properties are defined in the Identity Manager Management Console.
Also provides a custom object with basic implementations for startup
and shutdown methods, and optionally, access to the managed object providers.
LifeCycle
methods are called when Identity Manager starts up the
environment and loads objects (including custom objects), and also when
Identity Manager shuts down the environment. These methods give
the custom object an opportunity to connect to and disconnect
from external objects, and to perform any other startup and
shutdown operations that it might require.
All LifeCycle
methods throw an exception. If
an exception is thrown, Identity Manager logs the exception,
and processing continues.
The LifeCycle
interface is part of the core
Identity Manager API architecture. The ...Adapter
object in each Identity Manager API inherits LifeCycle
methods.
Method Summary | |
---|---|
void |
init(java.util.Hashtable imeProperties)
Passes user-defined properties into the custom object. |
void |
init(java.util.Hashtable imeProperties,
ProviderAccessor providerAccessor)
Passes user-defined properties and access to the providers into the custom object. |
void |
shutdown()
Identity Manager calls this method just before it destroys all objects in the Identity Manager environment and shuts down services in the Identity Manager environment. |
void |
startup()
Identity Manager calls this method when it is starting up the environment. |
void |
uninit()
Identity Manager calls this method just before shutting down services for the Identity Manager environment. |
Method Detail |
---|
void startup() throws java.lang.Exception
java.lang.Exception
void shutdown() throws java.lang.Exception
java.lang.Exception
void init(java.util.Hashtable imeProperties) throws java.lang.Exception
init()
method of all custom objects.
You access the Miscellaneous screen by clicking Miscellaneous on
the Advanced Settings screen.
init()
.
init()
method. For example,
if a CreditRating property is defined on the Miscellaneous screen,
and also in the User Defined Properties section of the Properties screen for a
particular event listener, the CreditRating value as defined on the latter screen
is passed into the init()
method of the event listener adapter.
The CreditRating value defined on the Miscellaneous screen is passed into the
init()
method of all other event listeners as well as all other types
of custom objects.
startup()
is
called and after the class is loaded.
imeProperties
- Properties data for the Identity Manager environment.
java.lang.Exception
void init(java.util.Hashtable imeProperties, ProviderAccessor providerAccessor) throws java.lang.Exception
init()
method is useful if you need to use a
managed object multiple times -- for example, if multiple Create User tasks
will assign each new user to the same role. In that case, you can cache the
role object during initialization rather than retrieving it through the
ProviderService
passed into each task context.
init(Hashtable)
.
java.lang.Exception
void uninit() throws java.lang.Exception
uninit()
methods are
called before any of the shutdown()
methods are called.
java.lang.Exception
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |