All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.syncbuilder.storage.DatabaseImplFactory
Summary |
public class DatabaseImplFactory extends java.lang.Object { // Methods 3 public static DatabaseImpl findDatabaseImplByCreator(Char4); public static DatabaseImpl findDatabaseImplByName(String); public static void registerDatabaseImpl(DatabaseImpl); }
This class organizes a global list of known specializations of DatabaseImpl.
It can accept registrations of new DatabaseImpls and it can find previously
registered DatabaseImpls through different criteria.
There is no need to register the DatabaseImpls of the built-in applications,
because these are already known to the factory.
Methods |
· findDatabaseImplByName | Summary | Top |
public static DatabaseImpl findDatabaseImplByName(String dbname)
· findDatabaseImplByCreator | Summary | Top |
public static DatabaseImpl findDatabaseImplByCreator(Char4 creator)
· registerDatabaseImpl | Summary | Top |
public static void registerDatabaseImpl(DatabaseImpl dbimpl)
Register an instance of DatabaseImpl with the factory. The instances will be registered through both their name and their creator ID.
The very same instance will be returned later, when you ask the factory to return a DatabaseImpl with the given name or creator.Any DatabaseImpl which you want to register through this method needs to have a proper (non null) name and creator ID.
Some applications (e.g. the built-in applications) have their name and creator ID hard-coded into their DatabaseImpl. Other applications (e.g. the "generic" application) do not have this information hard-coded into their DatabaseImpl, but you first need to instantiate their DatabaseImpl with the required information before you can register it through this method.
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7