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

org.joinedworkz.common.adapter.ResourceProvideAdapter.xtend Maven / Gradle / Ivy

There is a newer version: 1.3.46
Show newest version
package org.joinedworkz.common.adapter

import org.joinedworkz.core.model.CmnProvidedResource
import org.eclipse.xtend.lib.annotations.Accessors
import org.joinedworkz.core.model.CmnComponent
import org.joinedworkz.core.model.CmnAdapter
import java.util.Map


@Accessors
class ResourceProvideAdapter implements CmnAdapter {

	final Map providedResources = newLinkedHashMap

	def putProvidedResource(CmnComponent component, CmnProvidedResource providedResource) {
		providedResources.put(component, providedResource)
	}

	def CmnProvidedResource getProvidedResource(CmnComponent component) {
		return providedResources.get(component)
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy