OSGi Blueprint XML 파일

Blueprint XML 파일은 애플리케이션의 다양한 컴포넌트를 정의하고 설명합니다.

Blueprint XML 파일에는 다양한 컴포넌트 관리자의 정의가 있습니다. Blueprint 컨테이너 스펙은 4개의 기본 컴포넌트 관리자(Bean 관리자, 서비스 관리자, 2개의 서비스 참조 관리자)를 정의합니다. 각 관리자에는 관리자 특성에 대해 설명하는 해당 XML 요소가 있습니다. 각 관리자는 컴포넌트 인스턴스를 제공하며 작성하는 컴포넌트의 라이프사이클을 작성하고 관리해야 합니다.

번들의 Blueprint 파일은 OSGI-INF/blueprint 디렉토리에 있는 XML 파일입니다. 또한 번들 Manifest 파일에서 Bundle-Blueprint 특성을 사용하여 특정 파일 이름을 지정할 수 있습니다. 예를 들어, 다음과 같습니다.
Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml,OSGI-INF/blueprint/helloWorldRef.xml
다음 코드는 Blueprint 파일, OSGI-INF/blueprint/blueprint.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을 참조하십시오.

주제 유형을 표시하는 아이콘 개념 주제
Information Center의 이용 약관 | 피드백

시간소인 아이콘 마지막 업데이트 날짜: 2014-05-22

파일 이름: cblueprintxml.html