Methods' Details |
addResourceFactory
void |
addResourceFactory( |
[in] string |
sResourceURL, |
| [in] XResourceFactory |
xResourceFactory ); |
- Description
- Register a new resource factory for the given URL.
When one factory is responsible for more than one type of resource
then this method has to be called for each type. If this method is
called multiple times for the same URL then a previously registered
factory is removed for the URL.
- Parameter sResourceURL
- The URL of the resource that the factory can create.
- Parameter xResourceFactory
- The resource factory object.
|
|
removeResourceFactoryForURL
void |
removeResourceFactoryForURL( |
[in] string |
sResourceURL ); |
- Description
- Remove a resource factory for one type of resource. When the
factory has been registered for other URLs as well then it remains
registered for them. Use the
removeResourceFactoryForReference() to remove a
factory completely.
- Parameter sResourceURL
- The URL for which to remove the resource factory.
|
|
removeResourceFactoryForReference
void |
removeResourceFactoryForReference( |
[in] XResourceFactory |
xResourceFactory ); |
- Description
- Remove a resource factory for all resource types it has been registered for. Use
removeResourceFactoryForURL to remove a factory
just for one resource type and to leave it registered for others.
- Parameter xResourceFactory
- The resource factory object to remove.
|
|
getResourceFactory
- Description
- Return the resource factory that was previously registered for the
given resource type. This method is typically called by one of the
resource controllers.
- Parameter sResourceURL
- The URL of the resource type for which to return the resource
factory.
- Returns
- When no resource factory was registered for the given resource
type then an empty reference is returned.
|
|
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.