All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.org.ops4j.gaderian.module.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
	Copyright (C) 2004 Johan Maasing johan at zoom.nu
	
	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at
	
	http://www.apache.org/licenses/LICENSE-2.0
	
	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
-->
<module id="nu.zoom.swing.desktop" version="2.0.0">
	<service-point id="Workbench"
		interface="nu.zoom.swing.desktop.Workbench">
		<interceptor service-id="EventQueuePolicyInterceptorFactory" />

		<invoke-factory service-id="gaderian.BuilderFactory"
			model="singleton">
			<construct
				class="nu.zoom.swing.desktop.workbench.WorkbenchImpl">
				<service>Preferences</service>
				<service>LookAndFeelManager</service>
				<messages />
				<configuration>PlugIns</configuration>
			</construct>
		</invoke-factory>
	</service-point>


	<service-point id="Preferences"
		interface="nu.zoom.swing.desktop.preferences.Preferences">
		<invoke-factory service-id="gaderian.BuilderFactory"
			model="singleton">
			<construct
				class="nu.zoom.swing.desktop.preferences.impl.PreferencesImpl">
			</construct>
		</invoke-factory>
	</service-point>

	<service-point id="LookAndFeelManager"
		interface="nu.zoom.swing.desktop.PlugIn">
		<invoke-factory service-id="gaderian.BuilderFactory"
			model="singleton">
			<construct
				class="nu.zoom.swing.desktop.plugin.laf.LookAndFeelManager">
				<service>Workbench</service>
				<messages />
				<service>Preferences</service>
				<configuration>LookAndFeel</configuration>
			</construct>
		</invoke-factory>
	</service-point>

	<service-point id="EventQueuePolicyInterceptorFactory"
		interface="org.ops4j.gaderian.ServiceInterceptorFactory">
		<invoke-factory service-id="gaderian.BuilderFactory"
			model="singleton">
			<construct
				class="nu.zoom.swing.desktop.worker.WorkerInterceptorFactory" />
		</invoke-factory>
	</service-point>

	<!-- Defines the plug ins the startup class should load -->
	<configuration-point id="PlugIns">
		<schema>
			<element name="plugin">
				<attribute name="serviceName" required="true"
					unique="true" translator="service" />
				<rules>
					<push-attribute attribute="serviceName" />
					<invoke-parent method="addElement" />
				</rules>
			</element>
		</schema>
	</configuration-point>

	<service-point id="SysProps"
		interface="nu.zoom.swing.desktop.plugin.sysprops.SystemProperties">
		<invoke-factory service-id="gaderian.BuilderFactory">
			<construct
				class="nu.zoom.swing.desktop.plugin.sysprops.SystemProperties">
			</construct>
		</invoke-factory>
	</service-point>

	<contribution configuration-id="PlugIns">
		<plugin serviceName="nu.zoom.swing.desktop.SysProps" />
	</contribution>

	<!-- Defines the Look and feel classes the LookAndFeel manager should know about -->
	<configuration-point id="LookAndFeel">
		<schema>
			<element name="laf">
				<attribute name="serviceName" required="true"
					unique="true" translator="service" />
				<rules>
					<push-attribute attribute="serviceName" />
					<invoke-parent method="addElement" />
				</rules>
			</element>
		</schema>
	</configuration-point>
</module>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy