Cisco Systems OL-27172-01 Mobility Aid User Manual


 
17-22
Cisco Broadband Access Center 3.8 Administrator Guide
OL-27172-01
Chapter 17 Configuring Broadband Access Center
Managing DPE Feature Pack Extensions
Writing a New Class for DPE Feature Pack Extensions
This procedure illustrates how to write a new class for DPE feature pack extension. This section also
provides details about how to add a new class and integrate it with the DPE.
To write the new class:
Step 1 Create a Java source file for the custom publishing extension, and compile it.
Step 2 Create a manifest file for the JAR file that will contain the extension class.
For detailed information on creating a manifest file and using the command-line JAR tool, see Java
documentation.
For example:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 17.0-b16 (Sun Microsystems Inc.)
Implementation-Title: Cisco Broadband Access Center Femtocell Extension
Implementation-Version: FEMTOEXT 3.7 (test-build)
Implementation-Vendor: Cisco Systems, Inc.
Extension-Name: FP-femtoext-3.7
Java JAR file manifests contain attributes that are formatted as name-value pairs and support a group of
attributes that provide package versioning information.
Note Cisco BAC accepts only those extension JAR files that include a manifest with the Extension-Name
attribute in the files.
Step 3 For each new class being subclassed, create a mapping file in the directory META-INF/services.
The name of the mapping file is the same as the new class being subclassed. This mapping file contains
the names of the new subclasses of that class.
For example create the mapping file:
META-INF/services/com.cisco.provisioning.cpe.extensions.dpe.spi.cwmp.SoapRequestSenderServ
ice
This file consists of the following:
# This example configures the class SoapRequestSenderProvider as a DPE service
# provider extension class attached to the DPE service SoapRequestSenderService.
# Service providers for:
# com.cisco.provisioning.cpe.extensions.dpe.spi.cwmp.SoapRequestSenderService
com.cisco.bac.femto.dpe.extensions.FemtoServiceEnablementExtension
Step 4 Create the JAR file for the custom extension point in the directory <BAC_HOME>/dpe/conf/.
For example:
C:\>jar cm0vf manifest.txt femto.jar com
added manifest
adding: com/(in = 0) (out= 0)(stored 0%)
adding: com/cisco/(in = 0) (out= 0)(stored 0%)
adding: com/cisco/bac/(in = 0) (out= 0)(stored 0%)
adding: com/cisco/bac/femto/(in = 0) (out= 0)(stored 0%)
adding: com/cisco/bac/femto/dpe/(in = 0) (out= 0)(stored 0%)
adding: com/cisco/bac/femto/dpe/extensions/(in = 0) (out= 0)(stored 0%)
adding: com/cisco/bac/femto/dpe/extensions/
FemtoServiceEnablementExtension.class(in = 4038) (out= 4038)(stored 0%)