public class PersistentResourceFactory extends Object implements Resource.Factory
PersistentResource
s.Resource.Factory.Descriptor, Resource.Factory.Registry
Modifier | Constructor and Description |
---|---|
protected |
PersistentResourceFactory()
Constructs a new
PersistentResourceFactory . |
Modifier and Type | Method and Description |
---|---|
Resource |
createResource(URI uri)
Creates a resource with the given URI and returns it.
|
static PersistentResourceFactory |
getInstance()
Returns the instance of this class.
|
protected PersistentResourceFactory()
PersistentResourceFactory
.@Nonnull public static PersistentResourceFactory getInstance()
@Nullable public Resource createResource(@Nonnull URI uri)
Clients will typically not call this directly themselves;
it's called by the resource set to create
a resource.
The uri
must be registered in the PersistenceBackendFactoryRegistry
.
createResource
in interface Resource.Factory
uri
- the URI.ResourceSet.createResource(URI)
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.