|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.registry.XRegistrationFactory
public abstract class XRegistrationFactory
A factory for transfer handlers
Copyright (c) Xoetrope Ltd., 1998-2006. See license.txt for more details
| Field Summary | |
|---|---|
protected static int |
changeCounter
A counter for changes to the registry. |
static int |
CLASS_MATCH
Match transfer handlers based on the target component class name |
protected static java.util.Hashtable |
configFiles
The config files used to build the set of component adapters. |
protected java.util.ArrayList[] |
handlerRegisters
The register of transfer handler adapters for each component type |
static int |
INSPECTOR_MATCH
Match transfer handlers based on the results of a user defined comparison |
static int |
INSTANCE_MATCH
Match transfer handlers based on inheritance from a particular class |
static int |
INTERFACE_MATCH
Match transfer handlers based on implementation of a particular interface |
protected int |
localChangeCounter
Used for tracking changes to the registry spec. |
| Constructor Summary | |
|---|---|
protected |
XRegistrationFactory(XProject project,
java.lang.String factoryName,
java.lang.String basicConfigFile,
java.lang.String startupKey,
java.lang.String defaultProjectConfigFile)
|
| Method Summary | |
|---|---|
static void |
addConfigFile(java.lang.String key,
java.lang.Object resource,
boolean overwrite)
Add a configuration file. |
protected void |
addRegistrationTypes(XmlElement regRoot,
int mode)
Read the component registry. |
void |
checkRegistration()
Check that all the registered components are loaded |
protected void |
doRead(java.lang.String key,
java.lang.Object configFile)
Read the component registry. |
protected void |
doRead(java.lang.String key,
java.lang.String configFile)
Read the component registry. |
protected void |
doRead(java.lang.String key,
java.net.URL configFileURL)
Read the component registry. |
abstract java.lang.String |
getFactoryName()
Get the name of this factory |
java.lang.Object |
getObject(java.lang.Object comp,
java.util.Hashtable instanceConfig)
Creates a new instance of TransferHandler for a particular type |
protected void |
read()
Read the component registry. |
void |
read(java.lang.String key,
java.io.Reader reader)
Read the component registry. |
protected void |
read(java.lang.String key,
java.lang.String configFile)
Read the component registry. |
void |
updateConfig()
Signal that the configuration has been updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CLASS_MATCH
public static final int INTERFACE_MATCH
public static final int INSTANCE_MATCH
public static final int INSPECTOR_MATCH
protected java.util.ArrayList[] handlerRegisters
protected static java.util.Hashtable configFiles
protected static int changeCounter
protected int localChangeCounter
| Constructor Detail |
|---|
protected XRegistrationFactory(XProject project,
java.lang.String factoryName,
java.lang.String basicConfigFile,
java.lang.String startupKey,
java.lang.String defaultProjectConfigFile)
| Method Detail |
|---|
public abstract java.lang.String getFactoryName()
public java.lang.Object getObject(java.lang.Object comp,
java.util.Hashtable instanceConfig)
comp - the source componentinstanceConfig - the attributes of the instance
public static void addConfigFile(java.lang.String key,
java.lang.Object resource,
boolean overwrite)
key - the name by which the configuration file is referencedresource - the name/path of the configuration file or the URL for the fileoverwrite - true to overwrite and existing entry matching the specified keypublic void updateConfig()
protected void read()
protected void read(java.lang.String key,
java.lang.String configFile)
configFile - the name of the configuration filekey - the name by which the configuration file is referenced
protected void doRead(java.lang.String key,
java.lang.Object configFile)
configFile - the name of the configuration filekey - the name by which the configuration file is referenced
protected void doRead(java.lang.String key,
java.lang.String configFile)
configFile - the name of the configuration filekey - the name by which the configuration file is referenced
protected void doRead(java.lang.String key,
java.net.URL configFileURL)
configFileURL - the URL of the configuration filekey - the name by which the configuration file is referenced
public void read(java.lang.String key,
java.io.Reader reader)
key - the name by which the configuration file is referencedreader - the reader from which to read the file
protected void addRegistrationTypes(XmlElement regRoot,
int mode)
regRoot - the name by which the configuration file is referencedmode - the match mode for the new transfer handler typespublic void checkRegistration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||