org.gcube.resourcemanagement.support.server.managers.resources
Class ResourceFactory
java.lang.Object
org.gcube.resourcemanagement.support.server.managers.resources.ResourceFactory
public class ResourceFactory
- extends Object
For lazy developers here given the facilities to instantiate the proper
resource manager of a resource given its identifier and type.
- Author:
- Daniele Strollo (ISTI-CNR)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFactory
public ResourceFactory()
createResourceManager
public static final AbstractResourceManager createResourceManager(AllowedResourceTypes type)
throws ResourceOperationException
- Throws:
ResourceOperationException
createResourceManager
public static final AbstractResourceManager createResourceManager(AllowedResourceTypes type,
String id)
throws ResourceOperationException
- Parameters:
type
- id
- if null the default constructor (empty params) will be used
- Returns:
-
- Throws:
ResourceOperationException
main
public static final void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.