public interface XSDContextIF
extends java.util.Map<java.lang.Object,java.lang.Object>
Modifier and Type | Method and Description |
---|---|
XSDContextIF |
clone()
Clone the context.
|
javax.mail.Message |
createMailMessage(java.lang.String subject,
java.lang.String message)
Create a mail message
|
void |
destroy()
Destroy the context.
|
AsamOdsFactoryIF |
getAsamOdsFactory()
Retrieve the ASAM ODS factory.
|
java.lang.ClassLoader |
getClassLoader()
Get the class loader that should be used for class loading.
|
java.lang.Object |
getDescriptor()
Get the xml tree descriptor.
|
ImplementationFactoryIF |
getImplementationFactory()
Retrieve the implementation factory.
|
java.util.logging.Logger |
getLogger()
Get the logger for the context oprations.
|
java.util.logging.Logger |
getLogger(java.lang.String name)
Get a logger from the context named like the given parameter
and parented by the internal logger.
|
LoggerFactoryIF |
getLoggerFactory()
Retrieve the logger factory.
|
MailFactoryIF |
getMailFactory()
Retrieve the mail factory.
|
java.util.logging.Logger |
getMessenger()
Get the messenger for the context oprations.
|
java.util.logging.Logger |
getMessenger(java.lang.String name)
Get a messenger from the context named like the given parameter
and parented by the internal messenger.
|
java.lang.String |
getProperty(java.lang.String key)
Get a property from context.
|
java.lang.String |
getProperty(java.lang.String key,
java.util.Properties alt)
Get a property.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
Get a property from context.
|
java.lang.String |
getPropertyDefinition(java.lang.String key)
Get a property as it is defined.
|
java.lang.String |
getPropertyDefinition(java.lang.String key,
java.util.Properties alt)
Get a property as it is defined.
|
java.lang.String |
getPropertyDefinition(java.lang.String key,
java.lang.String def)
Get a property as it is defined.
|
PropertyFactoryIF |
getPropertyFactory()
Retrieve the property factory.
|
long |
getStartupTime()
Get the time of the startup.
|
Status |
getStatus()
Get the runtime status.
|
java.lang.String |
getStatusMessage()
Get the status message
|
java.util.logging.Logger |
getTracer()
Get the tracer for the context oprations.
|
java.util.logging.Logger |
getTracer(java.lang.String name)
Get a tracer from the context named like the given parameter
and parented by the internal tracer.
|
boolean |
isInitialized()
Get a boolean to decides that the context is initialized.
|
boolean |
isNotStatus(java.lang.String status)
Compare the runtime status and check against the reverse condition.
|
boolean |
isNullTest()
Indicates that the current run is null.
|
boolean |
isPedantic()
Return a boolean whether the gathermode is pedantic.
|
boolean |
isStatus(Status status)
Inquire the runtime status.
|
boolean |
isStatus(java.lang.String status)
Compare the runtime status.
|
java.lang.String[] |
listReferenceKeys()
Retrieve a keyset of the references.
|
void |
nullTest(boolean flag)
Switch the null test.
|
void |
putAll(java.util.Properties properties)
Put all the given properties to the internal list of properties.
|
void |
putAll(java.util.ResourceBundle bundle)
Put all the given bundle properties to the internal list of properties.
|
void |
putAll(java.lang.String bundle)
Put all the given bundle properties to the internal list of properties.
|
void |
putAllAsDefaults(java.util.Properties properties)
Put all the given properties to the internal list of default properties.
|
void |
putAllAsDefaults(java.util.ResourceBundle bundle)
Put all the given bundle properties to the internal list of default properties.
|
void |
putAllAsDefaults(java.lang.String bundle)
Put all the given bundle properties to the internal list of default properties.
|
java.lang.String |
removeDecorator(java.lang.String value)
Remove the property decorators from a string value.
|
java.lang.String |
removeDecorator(java.lang.String value,
java.util.Map<java.lang.String,java.lang.String> alt)
Remove the property decorators from a string value.
|
java.lang.String |
removeDecorator(java.lang.String value,
java.util.Properties alt)
Remove the property decorators from a string value.
|
void |
removeReference(java.lang.String key)
Remove a reference object.
|
void |
resetStartupTime()
Reset the runtime startup time.
|
java.lang.Object |
restoreReference(java.lang.String key)
Restore a reference object.
|
void |
saveReference(java.lang.String key,
AoSession session)
Save a session reference object.
|
void |
saveReference(java.lang.String key,
java.lang.Object obj)
Save a reference object.
|
void |
sendMail(javax.mail.Message message)
Send a mail message
|
void |
setAsamOdsFactory(AsamOdsFactoryIF factory)
Set the ASAM ODS factory.
|
void |
setBaseDir(java.lang.String basedir)
Set the build in varibale basedir.
|
void |
setClassLoader(java.lang.ClassLoader cl)
Set the class loader that should be used for class loading.
|
void |
setDescriptor(java.lang.Object descriptor)
Set the xml root tree descriptor.
|
void |
setEnvironment(Environment env)
Read the environment prefix from an xml tree node.
|
void |
setEnvironmentPrefix(java.lang.String prefix)
Set the environment prefix.
|
void |
setGathermode(java.lang.String mode)
The the gathermode.
|
void |
setImplementationFactory(ImplementationFactoryIF factory)
Set the implementation factory.
|
void |
setInitialized(boolean flag)
Indicate that the context is initialized.
|
void |
setLogger(java.util.logging.Logger logger)
Set the logger for the context oprations.
|
void |
setLoggerFactory(LoggerFactoryIF factory)
Set the logger factory.
|
void |
setLogLevel(java.lang.String logLevel,
java.lang.String traceLEvel,
java.lang.String messageLevel)
Set the level of the loggers.
|
void |
setMailFactory(MailFactoryIF factory)
Set the mail factory.
|
void |
setMessage(javax.mail.Message message)
Set a predefined message.
|
void |
setMessenger(java.util.logging.Logger messenger)
Set the messenger for the context oprations.
|
void |
setOutputStream(java.io.OutputStream out,
java.io.OutputStream err)
Set the output streams for standard out and error.
|
void |
setProperties(Properties props)
Read the properties from an xml tree node.
|
void |
setProperty(Property prop)
Read the properties from an HQLX xml tree node.
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Set a property.
|
void |
setPropertyFactory(PropertyFactoryIF factory)
Set the property factory.
|
void |
setStatus(Status status)
Set the runtime status.
|
void |
setStatus(Status status,
java.lang.String message)
Set the runtime status.
|
void |
setTracer(java.util.logging.Logger tracer)
Set the tracer for the context oprations.
|
void |
tearDown()
Tear down the context.
|
XSDContextIF clone()
void tearDown()
void destroy()
java.lang.String getProperty(java.lang.String key, java.util.Properties alt)
key
- the property key.alt
- an alternative properties object.java.lang.String getProperty(java.lang.String key)
key
- the property keyjava.lang.String getProperty(java.lang.String key, java.lang.String def)
key
- the property keydef
- the default value, if the key was not declaired.java.lang.String getPropertyDefinition(java.lang.String key, java.util.Properties alt)
key
- the property key.alt
- an alternative properties object.java.lang.String getPropertyDefinition(java.lang.String key)
key
- the property keyjava.lang.String getPropertyDefinition(java.lang.String key, java.lang.String def)
key
- the property keydef
- the default value, if the key was not declaired.void putAll(java.util.Properties properties)
properties
- void putAll(java.util.ResourceBundle bundle)
bundle
- the propery bundlevoid putAll(java.lang.String bundle)
bundle
- the propery bundle namevoid putAllAsDefaults(java.util.Properties properties)
properties
- void putAllAsDefaults(java.util.ResourceBundle bundle)
bundle
- the propery bundlevoid putAllAsDefaults(java.lang.String bundle)
bundle
- the propery bundle namejava.lang.String removeDecorator(java.lang.String value)
value
- The string value.java.lang.String removeDecorator(java.lang.String value, java.util.Properties alt)
value
- The string value.alt
- an alternative set of properties.java.lang.String removeDecorator(java.lang.String value, java.util.Map<java.lang.String,java.lang.String> alt)
value
- The string value.alt
- an alternative map of properties.void setEnvironmentPrefix(java.lang.String prefix)
prefix
- the prefix used for environment variables.void setProperties(Properties props) throws java.io.FileNotFoundException, ExecutableException, java.io.IOException
props
- the properties tree node of an XML structure.java.io.FileNotFoundException
ExecutableException
java.io.IOException
void setProperty(Property prop) throws java.io.FileNotFoundException, ExecutableException, java.io.IOException
prop
- the property tree node of an XML structure.java.io.FileNotFoundException
ExecutableException
java.io.IOException
java.lang.Object setProperty(java.lang.String key, java.lang.String value)
key
- the property key.value
- the property value.void setEnvironment(Environment env)
env
- the environment tree node of an XML structure.void setLogger(java.util.logging.Logger logger)
logger
- the loggervoid setTracer(java.util.logging.Logger tracer)
tracer
- the tracervoid setMessenger(java.util.logging.Logger messenger)
messenger
- the messengerjava.util.logging.Logger getLogger()
java.util.logging.Logger getLogger(java.lang.String name)
name
- the name of the logger.java.util.logging.Logger getTracer()
java.util.logging.Logger getTracer(java.lang.String name)
name
- the name of the tracer.java.util.logging.Logger getMessenger()
java.util.logging.Logger getMessenger(java.lang.String name)
name
- the name of the messenger.void setStatus(Status status)
status
- the new status.void setStatus(Status status, java.lang.String message)
status
- the new status.message
- the status message.Status getStatus()
java.lang.String getStatusMessage()
boolean isStatus(Status status)
status
- the status to against.boolean isStatus(java.lang.String status)
status
- the status string to check against.boolean isNotStatus(java.lang.String status)
status
- the status string to check against.boolean isPedantic()
void setGathermode(java.lang.String mode)
mode
- the mode string.long getStartupTime()
void resetStartupTime()
void setDescriptor(java.lang.Object descriptor) throws InvalidDescriptorException
descriptor
- the tree node.InvalidDescriptorException
java.lang.Object getDescriptor()
void setLogLevel(java.lang.String logLevel, java.lang.String traceLEvel, java.lang.String messageLevel) throws java.text.ParseException
logLevel
- The level string of the loggertraceLEvel
- The level string of the tracermessageLevel
- The level string of the messengerjava.text.ParseException
void setOutputStream(java.io.OutputStream out, java.io.OutputStream err)
out
- the output stream for standard out.err
- the output stream for standard error.void saveReference(java.lang.String key, java.lang.Object obj)
key
- the reference keyword.obj
- the reference object.void saveReference(java.lang.String key, AoSession session)
key
- the reference keyword.session
- the reference to session.java.lang.Object restoreReference(java.lang.String key)
key
- the reference keyword.void removeReference(java.lang.String key)
key
- the reference keyword.java.lang.String[] listReferenceKeys()
javax.mail.Message createMailMessage(java.lang.String subject, java.lang.String message) throws javax.mail.MessagingException
javax.mail.MessagingException
void setMessage(javax.mail.Message message)
void sendMail(javax.mail.Message message) throws javax.mail.SendFailedException, javax.mail.MessagingException
message
- the message to be sent.javax.mail.SendFailedException
javax.mail.MessagingException
void setImplementationFactory(ImplementationFactoryIF factory)
factory
- the implementation factory.ImplementationFactoryIF getImplementationFactory()
void setAsamOdsFactory(AsamOdsFactoryIF factory)
factory
- the ASAM ODS factory.AsamOdsFactoryIF getAsamOdsFactory()
void setLoggerFactory(LoggerFactoryIF factory)
factory
- the logger factory.LoggerFactoryIF getLoggerFactory()
void setMailFactory(MailFactoryIF factory)
factory
- the mail factory.MailFactoryIF getMailFactory()
void setPropertyFactory(PropertyFactoryIF factory)
factory
- the property factory.PropertyFactoryIF getPropertyFactory()
boolean isInitialized()
setInitialized(boolean)
void setInitialized(boolean flag)
flag
- true to indicate that the context is initialized.isInitialized()
void setBaseDir(java.lang.String basedir) throws java.io.IOException
basedir
- the new value.java.io.IOException
- when the directory doesn't exist.boolean isNullTest()
void nullTest(boolean flag)
flag
- if true null test is turned on.void setClassLoader(java.lang.ClassLoader cl)
cl
- the class loader that should be used for loadingjava.lang.ClassLoader getClassLoader()