public class ResourceInstanceFactoryImpl extends Object implements ResourceInstanceFactory
Constructor and Description |
---|
ResourceInstanceFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
static void |
addResourceDefinition(Resource.Type type,
ResourceDefinition definition)
Associate an external resource definition with a type.
|
ResourceInstance |
createResource(Resource.Type type,
Map<Resource.Type,String> mapIds)
Create a resource instance.
|
static ResourceDefinition |
getResourceDefinition(Resource.Type type,
Map<Resource.Type,String> mapIds)
Get a resource definition for the given type.
|
public ResourceInstance createResource(Resource.Type type, Map<Resource.Type,String> mapIds)
ResourceInstanceFactory
createResource
in interface ResourceInstanceFactory
type
- the type of resource to createmapIds
- the resource id's which identify the resourcepublic static void addResourceDefinition(Resource.Type type, ResourceDefinition definition)
type
- the resource typedefinition
- the resource definitionpublic static ResourceDefinition getResourceDefinition(Resource.Type type, Map<Resource.Type,String> mapIds)
type
- the resource typemapIds
- the map of idsCopyright © 2022 Apache Software Foundation. All rights reserved.