public class StandardInstrument.Facade extends Object implements IInstrument
META_ID, META_NAME, META_VENDOR, META_VERSION| Constructor and Description |
|---|
StandardInstrument.Facade() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrerequisite(IInstrument prerequisite,
String absentAction) |
IExtension |
createExtension(String extensionPointId,
String id) |
void |
flush() |
Object |
getAttribute(Object key)
Get an attribute value from the context
|
File |
getBaseDir()
The platform base directory.
|
ClassLoader |
getClassLoader()
A
ClassLoader instance suitable to load classes and resources in
the context of the receiver. |
IExtension[] |
getExtensions()
The extensions made by this
IExtensionProvider. |
String |
getId()
A unique name for the instrument.
|
IInstrumentRegistry |
getInstrumentRegistry()
The
IInstrumentRegistry where this IInstrument is
currently registered. |
MessageBundle |
getMessageBundle()
A
MessageBundle instance suitable to load messages associated
with the receiver context. |
String |
getMetaInfo(String name) |
IInstrumentPrerequisite[] |
getPrerequisites()
The collection of IInstrumentPrerequisite objects that are required to be
available for this one to run.
|
File |
getProfileDir()
Some user specific private directory.
|
State |
getState() |
File |
getTempDir()
The directory for temporary files.
|
File |
getWorkingDir()
The working directory.
|
void |
registerExtension(IExtension extension)
|
Object |
removeAttribute(Object key)
Remove an attribute binding in the context
|
void |
removePrerequisite(IInstrument prerequisite) |
Object |
setAttribute(Object key,
Object o)
Set the value of an attribute in the context
|
String |
toString() |
void |
unregisterExtension(IExtension extension)
|
public void addPrerequisite(IInstrument prerequisite, String absentAction)
addPrerequisite in interface IInstrumentpublic IExtension createExtension(String extensionPointId, String id)
createExtension in interface IInstrumentpublic void flush()
throws IOException
flush in interface IInstrumentIOExceptionpublic final Object getAttribute(Object key)
IAttributeSupportgetAttribute in interface IAttributeSupportkey - the name of the attribute to getkeypublic File getBaseDir()
IFileEnvironmentNormally this will be equal to the VM "user.dir" property.
getBaseDir in interface IFileEnvironmentpublic ClassLoader getClassLoader()
IClassLoaderSupportClassLoader instance suitable to load classes and resources in
the context of the receiver.getClassLoader in interface IClassLoaderSupportClassLoader instance suitable to load classes and
resources in the context of the receiver.public IExtension[] getExtensions()
IInstrumentIExtensionProvider.getExtensions in interface IInstrumentIExtensionProvider.public String getId()
IInstrument
It is used for identifying uniquely a instrument within the
IInstrumentRegistry. Clients may lookup instruments with well
known names, for example the annotation handling instrument.
By convention this should conform to the standard java notation for class names.
getId in interface IInstrumentpublic IInstrumentRegistry getInstrumentRegistry()
IInstrumentIInstrumentRegistry where this IInstrument is
currently registered.getInstrumentRegistry in interface IInstrumentIInstrumentRegistry where this IInstrument is
currently registered.public MessageBundle getMessageBundle()
IMessageBundleSupportMessageBundle instance suitable to load messages associated
with the receiver context.getMessageBundle in interface IMessageBundleSupportMessageBundle instance suitable to load messages
associated with the receiver context.public String getMetaInfo(String name)
getMetaInfo in interface IMetaInfoSupportpublic IInstrumentPrerequisite[] getPrerequisites()
IInstrumentgetPrerequisites in interface IInstrumentpublic File getProfileDir()
IFileEnvironmentNormally this will be equal to the VM "user.home" property or an application defined subdirectory.
getProfileDir in interface IFileEnvironmentpublic State getState()
getState in interface IInstrumentpublic File getTempDir()
IFileEnvironmentNormally this will be equal to the VM "java.io.tmpdir" property.
getTempDir in interface IFileEnvironmentpublic File getWorkingDir()
IFileEnvironmentNormally this will be equal to the VM "user.dir" property.
getWorkingDir in interface IFileEnvironmentpublic void registerExtension(IExtension extension) throws InstrumentRegistryException
IInstrumentregisterExtension in interface IInstrumentInstrumentRegistryExceptionpublic final Object removeAttribute(Object key)
IAttributeSupportremoveAttribute in interface IAttributeSupportkey - the name of the attribute to removekeypublic void removePrerequisite(IInstrument prerequisite)
removePrerequisite in interface IInstrumentpublic final Object setAttribute(Object key, Object o)
IAttributeSupportsetAttribute in interface IAttributeSupportkey - the name of the attribute to seto - the new value the attributekeypublic void unregisterExtension(IExtension extension) throws InstrumentRegistryException
IInstrumentunregisterExtension in interface IInstrumentInstrumentRegistryExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.