Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.ejb.cmp
Interface DeploymentCustomization


public interface DeploymentCustomization

This interface can be used to get access to the TopLink Session at EJB deployment time. If a DeploymentCustomization class is specified in the deployment properties of the bean, a new instance of this class will be created and the methods beforeLoginCustomization and afterLoginCustomization will be invoked with the TopLink Session as a parameter.


Method Summary
 java.lang.String afterLoginCustomization(Session session)
          This method is invoked on the instance of a class implementing the DeploymentCustomization interface after logging in to the WebLogic connection pool.
 java.lang.String beforeLoginCustomization(Session session)
          This method is invoked on the instance of a class implementing the DeploymentCustomization interface prior to logging in to the WebLogic connection pool.
 

Method Detail

beforeLoginCustomization

java.lang.String beforeLoginCustomization(Session session)
                                          throws java.lang.Exception
This method is invoked on the instance of a class implementing the DeploymentCustomization interface prior to logging in to the WebLogic connection pool. This provides the opportunity to add customizations to the Session, or to any of its associated components (Project, Login).

Parameters:
session - the instance of oracle.toplink.publicinterface.Session that manages the persistence for the beans of the TopLink project
Returns:
A String that gets printed to System.out upon returning to the caller
Throws:
java.lang.Exception

afterLoginCustomization

java.lang.String afterLoginCustomization(Session session)
                                         throws java.lang.Exception
This method is invoked on the instance of a class implementing the DeploymentCustomization interface after logging in to the WebLogic connection pool. This provides the opportunity to add customizations to the Session, or to any of its associated components (Project, Login).

Parameters:
session - the instance of oracle.toplink.publicinterface.Session that manages the persistence for the beans of the TopLink project
Returns:
A String that gets printed to System.out upon returning to the caller
Throws:
java.lang.Exception

Copyright © 1998, 2012, Oracle. All Rights Reserved.