First page Back Continue Last page Text

oracle adf workshop

Notes:


Basing Custom Component on a Framework Extension

If your component requires a custom Java class, you open the Java page of the component editor and select the appropriate check box to enable it. For example, when you enable a custom application module class for the YourServer application module, JDeveloper creates the appropriate YourServiceImpl.java class. It also updates the component’s XML component definition to reflect the name of the custom component class.

<AppModule

Name="YourService"

ComponentClass="com.yourcompany.yourapp.YourServiceImpl" >

<!-- etc. -->

</AppModule>

JDeveloper also updates the component’s custom Java class to modify its EXTENDS clause to reflect the new custom framework base class.

package com.yourcompany.yourapp;

import com.yourcompany.fwkext.CustomAppModuleImpl;

public class YourServiceImpl extends CustomAppModuleImpl {

/**This is the default constructor (do not remove) */ public YourServiceImpl() {} // etc. }