All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.ibm.beans.mb.RepositoryModelFactoryInterface

public interface interface RepositoryModelFactoryInterface
This interface defines the method needed to implement a RepositoryModelFactory that will return a custom RepositoryModel. The RepositoryModel returned from the createRepositoryModel() method must be a subclass of RepositoryModel.

For more information, please see the section on ManagedBeans/Repositories in the Guide To Features.

See Also:
RepositoryModel, RepositoryModelFactory

Method Index

 o createRepositoryModel(URL, int)
Creates a RepositoryModel.

Methods

 o createRepositoryModel
 public abstract RepositoryModel createRepositoryModel(URL url,
                                                       int mode) throws NoSuchMethodException, InstantiationException, IllegalAccessException, MalformedURLException
Creates a RepositoryModel.

Below is the suggested protocol naming scheme for specifying a repository via URL syntax:

XXXRepositoryModel -

beans.xxx:[drive_letter:]/<path>/<filename>
 

For example:

beans.xxx:f:/this/is/a/path/to/a/XXXRepository
 
Custom repositories may also be network enabled, in which case the following scheme is recommended:

NetXXXRepositoryModel -

beans.xxx://<hostname>/[<path>]/<filename>
 

For example:

beans.xxx://xxxserver.austin.ibm.com/this/path/BigXXX.suffix
 
Of course, the above is just a suggestion, and you can use whatever kind of URL naming scheme you'd like when you build your own RepositoryModel.

Parameters:
url - The location of this repository.
mode - READ_ONLY, WRITE_ONLY, or READ_WRITE.
Returns:
The requested RepositoryModel, or null if the create request is denied.
Throws: NoSuchMethodException
Thrown if an error occurs while constructing the repository access object.
Throws: InstantiationException
Thrown if an error occurs while building the RepositoryModel.
Throws: IllegalAccessException
Thrown if an error occurs while building the RepositoryModel.
Throws: MalformedURLException
Thrown if the repository name is incorrectly formatted.
See Also:
RepositoryModel, URL

All Packages  Class Hierarchy  This Package  Previous  Next  Index