wt.vc.config
Class StandardConfigService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.vc.config.StandardConfigService
All Implemented Interfaces:
ApplicationContextChild, ConfigService, Manager, NetFactor, Serializable

public class StandardConfigService
extends StandardManager
implements ConfigService, ApplicationContextChild, Serializable

This is a straight forward implementation of ConfigService that has no listeners.

Use the newStandardConfigService static factory method(s), not the StandardConfigService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: true

See Also:
Serialized Form

Field Summary
private  ApplicationContext applicationContext
           
private static String CLASSNAME
           
private static String RESOURCE
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardConfigService()
           
 
Method Summary
 QueryResult filteredIterationsOf(Mastered master, ConfigSpec configSpec)
          Returns a QueryResult of Iterated objects that are related to the given Mastered object and are valid for the given ConfigSpec.
 QueryResult filteredIterationsOf(QueryResult masters, ConfigSpec configSpec)
          Returns a QueryResult of Iterated objects that are related to the given QueryResult of Mastered objects and are valid for the given ConfigSpec.
 ApplicationContext getApplicationContext()
          Gets the object for the association that plays role: applicationContext.
 String getConceptualClassname()
          Deprecated.  
 ConfigSpec getConfigSpecFor(Iterated iteration)
          

Supported API: false
 ConfigSpec getDefaultConfigSpecFor(Class masterOrIterationClass)
          

Supported API: false
static StandardConfigService newStandardConfigService()
          Default factory for the class.
 QueryResult queryIterations(QuerySpec querySpec, ConfigSpec configSpec)
          Returns a QueryResult of Iterated objects that will be selcted by the given QuerySpec and are valid for the given ConfigSpec.
 void setApplicationContext(ApplicationContext a_ApplicationContext)
          Sets the object for the association that plays role: applicationContext.
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, performStartupProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

applicationContext

private ApplicationContext applicationContext
Constructor Detail

StandardConfigService

public StandardConfigService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

newStandardConfigService

public static StandardConfigService newStandardConfigService()
                                                      throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardConfigService
Throws:
WTException

filteredIterationsOf

public QueryResult filteredIterationsOf(Mastered master,
                                        ConfigSpec configSpec)
                                 throws WTException,
                                        PersistenceException
Returns a QueryResult of Iterated objects that are related to the given Mastered object and are valid for the given ConfigSpec.

Supported API: true

Specified by:
filteredIterationsOf in interface ConfigService
Parameters:
master - The master to get the iterations for.
configSpec - The ConfigSpec to process this master's iterations against.
Returns:
QueryResult
Throws:
WTException
PersistenceException

filteredIterationsOf

public QueryResult filteredIterationsOf(QueryResult masters,
                                        ConfigSpec configSpec)
                                 throws WTException,
                                        PersistenceException
Returns a QueryResult of Iterated objects that are related to the given QueryResult of Mastered objects and are valid for the given ConfigSpec.

Supported API: true

Specified by:
filteredIterationsOf in interface ConfigService
Parameters:
masters - The QueryResult of masters to get the iterations for.
configSpec - The ConfigSpec to process the resulting iterations against.
Returns:
QueryResult
Throws:
WTException
PersistenceException

queryIterations

public QueryResult queryIterations(QuerySpec querySpec,
                                   ConfigSpec configSpec)
                            throws WTException,
                                   PersistenceException
Returns a QueryResult of Iterated objects that will be selcted by the given QuerySpec and are valid for the given ConfigSpec. Note that a QuerySpec is appended by the ConfigSpec's appendSearchCriteria. After the query, the query result is passed to the ConfigSpec's process API.

Supported API: true

Specified by:
queryIterations in interface ConfigService
Parameters:
querySpec - The QuerySpec based on iterations.
configSpec - The ConfigSpec to process the resulting iterations against.
Returns:
QueryResult
Throws:
WTException
PersistenceException

getConfigSpecFor

public ConfigSpec getConfigSpecFor(Iterated iteration)
                            throws WTException


Supported API: false

Specified by:
getConfigSpecFor in interface ConfigService
Parameters:
iteration -
Returns:
ConfigSpec
Throws:
WTException

getDefaultConfigSpecFor

public ConfigSpec getDefaultConfigSpecFor(Class masterOrIterationClass)
                                   throws WTException


Supported API: false

Specified by:
getDefaultConfigSpecFor in interface ConfigService
Parameters:
masterOrIterationClass -
Returns:
ConfigSpec
Throws:
WTException

getApplicationContext

public ApplicationContext getApplicationContext()
Gets the object for the association that plays role: applicationContext.

Supported API: false

Specified by:
getApplicationContext in interface ApplicationContextChild
Returns:
ApplicationContext

setApplicationContext

public void setApplicationContext(ApplicationContext a_ApplicationContext)
                           throws WTPropertyVetoException
Sets the object for the association that plays role: applicationContext.

Supported API: false

Specified by:
setApplicationContext in interface ApplicationContextChild
Parameters:
a_ApplicationContext -
Throws:
WTPropertyVetoException