
50
ComPonent-oriented develoPment and assemblY
3.5.4.1 Interface Bundle e interface bundle contains the interface IAge
Calculator for the age calculator component and is defined as below:
package codabook.agecalculator.osgi.ifce;
import java.util.Calendar;
public interface IAgeCalculator {
public int calculateAge(Calendar dateOfBirth);
}
is bundle has only the interface, and it exports the codabook.agecalculator.
osgi.ifce package as shown in the manifest file below:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Ifce
Bundle-SymbolicName: codabook.agecalculator.osgi.ifce
Bundle-Version: 1.0.0.qualifier
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: ...