Blueprint XML 파일은 애플리케이션의 다양한 컴포넌트를 정의하고 설명합니다.
Blueprint XML 파일에는 다양한 컴포넌트 관리자의 정의가 있습니다. Blueprint 컨테이너 스펙은 4개의 기본 컴포넌트 관리자(Bean 관리자, 서비스 관리자, 2개의 서비스 참조 관리자)를 정의합니다. 각 관리자에는 관리자 특성에 대해 설명하는 해당 XML 요소가 있습니다. 각 관리자는 컴포넌트 인스턴스를 제공하며 작성하는 컴포넌트의 라이프사이클을 작성하고 관리해야 합니다.
Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml,OSGI-INF/blueprint/helloWorldRef.xml
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<bean activation="lazy" id="helloEBA" class="com.ibm.ws.eba.helloWorld.HelloWorldEBAImpl" init-method="hello">
</bean>
<service ranking="0" auto-export="disabled" interface="com.ibm.ws.eba.helloWorld.HelloWorldEBA" ref="helloEBA">
</service>
</blueprint>
Blueprint 컨테이너 스펙에 대한 자세한 정보는 OSGi Alliance 웹 사이트에서 Compendium Specification을 참조하십시오.