Package jadex.bridge.service.types.cms
Class CreationInfo
- java.lang.Object
-
- jadex.bridge.service.types.cms.CreationInfo
-
public class CreationInfo extends java.lang.ObjectA parameter object to capture extra information for component creation. All of the information is optional, i.e. may be null.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>argsThe arguments (map with name/value pairs).protected RequiredServiceBinding[]bindingsThe bindings.protected java.lang.StringconfigThe configuration.protected java.lang.StringfilenameThe file name.protected java.lang.String[]importsThe imports.protected java.lang.StringlocaltypeThe local component type name.protected IMonitoringService.PublishEventLevelmonitoringprotected java.lang.StringnameThe instance name.protected ProvidedServiceInfo[]pinfosThe provided service infos.protected java.lang.ObjectpojoThe pojo (optional).protected IResourceIdentifierridThe resource identifier.protected java.lang.BooleansuspendThe suspend flag (default: false).protected java.lang.BooleansynchronousThe synchronous flag (default: false).
-
Constructor Summary
Constructors Constructor Description CreationInfo()Create a new creation info.CreationInfo(IResourceIdentifier rid)Create a new creation info.CreationInfo(CreationInfo info)Create a new creation info.CreationInfo(java.lang.String config, java.util.Map<java.lang.String,java.lang.Object> args)Create a new creation info.CreationInfo(java.lang.String config, java.util.Map<java.lang.String,java.lang.Object> args, IResourceIdentifier rid)Create a new creation info.CreationInfo(java.util.Map<java.lang.String,java.lang.Object> args)Create a new creation info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreationInfoaddArgument(java.lang.String key, java.lang.Object arg)Add one arguments.java.util.Map<java.lang.String,java.lang.Object>getArguments()Get the arguments.java.lang.StringgetConfiguration()Get the configuration.java.lang.StringgetFilename()Get the filename.java.lang.String[]getImports()Get the imports.java.lang.StringgetLocalType()Get the localtype.IMonitoringService.PublishEventLevelgetMonitoring()Get the monitoring.java.lang.StringgetName()Get the instance name.java.lang.ObjectgetPojo()Get the pojo.ProvidedServiceInfo[]getProvidedServiceInfos()Get the service infos.RequiredServiceBinding[]getRequiredServiceBindings()Get the bindings.IResourceIdentifiergetResourceIdentifier()Get the resource identifier for loading the component model.java.lang.BooleangetSuspend()Get the suspend flag.java.lang.BooleangetSynchronous()Get the synchronous.CreationInfosetArguments(java.util.Map<java.lang.String,java.lang.Object> args)Set the arguments.CreationInfosetConfiguration(java.lang.String config)Set the configuration.CreationInfosetFilename(java.lang.String filename)Set the filename.CreationInfosetFilenameClass(java.lang.Class<?> clazz)Set the filename.CreationInfosetImports(java.lang.String[] imports)Set the importsCreationInfosetLocalType(java.lang.String localtype)Set the localtype.CreationInfosetMonitoring(IMonitoringService.PublishEventLevel monitoring)Set the monitoring.CreationInfosetName(java.lang.String name)Set the name.CreationInfosetPojo(java.lang.Object pojo)Set the pojo.CreationInfosetProvidedServiceInfos(ProvidedServiceInfo[] pinfos)Set the ProvidedServiceInfos.CreationInfosetRequiredServiceBindings(RequiredServiceBinding[] bindings)Set the bindings.CreationInfosetResourceIdentifier(IResourceIdentifier rid)Set the resource identifier for loading the component model.CreationInfosetSuspend(java.lang.Boolean suspend)Set the suspend flag.CreationInfosetSynchronous(java.lang.Boolean synchronous)Set the synchronous.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
name
protected java.lang.String name
The instance name.
-
filename
protected java.lang.String filename
The file name.
-
config
protected java.lang.String config
The configuration.
-
args
protected java.util.Map<java.lang.String,java.lang.Object> args
The arguments (map with name/value pairs).
-
rid
protected IResourceIdentifier rid
The resource identifier.
-
suspend
protected java.lang.Boolean suspend
The suspend flag (default: false).
-
monitoring
protected IMonitoringService.PublishEventLevel monitoring
-
synchronous
protected java.lang.Boolean synchronous
The synchronous flag (default: false).
-
imports
protected java.lang.String[] imports
The imports.
-
bindings
protected RequiredServiceBinding[] bindings
The bindings.
-
pinfos
protected ProvidedServiceInfo[] pinfos
The provided service infos.
-
localtype
protected java.lang.String localtype
The local component type name.
-
pojo
protected java.lang.Object pojo
The pojo (optional).
-
-
Constructor Detail
-
CreationInfo
public CreationInfo()
Create a new creation info.
-
CreationInfo
public CreationInfo(CreationInfo info)
Create a new creation info.
-
CreationInfo
public CreationInfo(java.util.Map<java.lang.String,java.lang.Object> args)
Create a new creation info.- Parameters:
args- The arguments.
-
CreationInfo
public CreationInfo(IResourceIdentifier rid)
Create a new creation info.- Parameters:
rid- The RID.
-
CreationInfo
public CreationInfo(java.lang.String config, java.util.Map<java.lang.String,java.lang.Object> args)Create a new creation info.- Parameters:
config- The configuration.args- The arguments.
-
CreationInfo
public CreationInfo(java.lang.String config, java.util.Map<java.lang.String,java.lang.Object> args, IResourceIdentifier rid)Create a new creation info.
-
-
Method Detail
-
getConfiguration
public java.lang.String getConfiguration()
Get the configuration.- Returns:
- the config.
-
setConfiguration
public CreationInfo setConfiguration(java.lang.String config)
Set the configuration.- Parameters:
config- the config to set.
-
getArguments
public java.util.Map<java.lang.String,java.lang.Object> getArguments()
Get the arguments.- Returns:
- the args.
-
setArguments
public CreationInfo setArguments(java.util.Map<java.lang.String,java.lang.Object> args)
Set the arguments.- Parameters:
args- the args to set
-
addArgument
public CreationInfo addArgument(java.lang.String key, java.lang.Object arg)
Add one arguments. Returns the updated CreationInfo for fluent API purposes.- Parameters:
key- The key.arg- The value.- Returns:
- CreationInfo
-
getResourceIdentifier
public IResourceIdentifier getResourceIdentifier()
Get the resource identifier for loading the component model.- Returns:
- the resource identifier.
-
setResourceIdentifier
public CreationInfo setResourceIdentifier(IResourceIdentifier rid)
Set the resource identifier for loading the component model.- Parameters:
rid- the resource identifier to set
-
getSuspend
public java.lang.Boolean getSuspend()
Get the suspend flag.- Returns:
- the suspend flag
-
setSuspend
public CreationInfo setSuspend(java.lang.Boolean suspend)
Set the suspend flag.- Parameters:
suspend- the suspend to set flag
-
getImports
public java.lang.String[] getImports()
Get the imports.- Returns:
- the imports.
-
setImports
public CreationInfo setImports(java.lang.String[] imports)
Set the imports- Parameters:
imports- The imports to set.
-
getRequiredServiceBindings
public RequiredServiceBinding[] getRequiredServiceBindings()
Get the bindings.- Returns:
- The bindings.
-
setRequiredServiceBindings
public CreationInfo setRequiredServiceBindings(RequiredServiceBinding[] bindings)
Set the bindings.- Parameters:
bindings- The bindings to set.
-
getProvidedServiceInfos
public ProvidedServiceInfo[] getProvidedServiceInfos()
Get the service infos.- Returns:
- The infos.
-
setProvidedServiceInfos
public CreationInfo setProvidedServiceInfos(ProvidedServiceInfo[] pinfos)
Set the ProvidedServiceInfos.- Parameters:
pinfos- The ProvidedServiceInfo to set.
-
getLocalType
public java.lang.String getLocalType()
Get the localtype.- Returns:
- the localtype.
-
setLocalType
public CreationInfo setLocalType(java.lang.String localtype)
Set the localtype.- Parameters:
localtype- The localtype to set.
-
getMonitoring
public IMonitoringService.PublishEventLevel getMonitoring()
Get the monitoring.- Returns:
- The monitoring.
-
setMonitoring
public CreationInfo setMonitoring(IMonitoringService.PublishEventLevel monitoring)
Set the monitoring.- Parameters:
monitoring- The monitoring to set.
-
getSynchronous
public java.lang.Boolean getSynchronous()
Get the synchronous.- Returns:
- The synchronous.
-
setSynchronous
public CreationInfo setSynchronous(java.lang.Boolean synchronous)
Set the synchronous.- Parameters:
synchronous- The synchronous to set.
-
getFilename
public java.lang.String getFilename()
Get the filename.- Returns:
- the filename
-
setFilename
public CreationInfo setFilename(java.lang.String filename)
Set the filename.- Parameters:
filename- The filename to set
-
getName
public java.lang.String getName()
Get the instance name.- Returns:
- The name.
-
setFilenameClass
public CreationInfo setFilenameClass(java.lang.Class<?> clazz)
Set the filename.- Parameters:
filename- The filename to set
-
setName
public CreationInfo setName(java.lang.String name)
Set the name.- Parameters:
name- the name to set
-
getPojo
public java.lang.Object getPojo()
Get the pojo.- Returns:
- The pojo
-
setPojo
public CreationInfo setPojo(java.lang.Object pojo)
Set the pojo.- Parameters:
pojo- The pojo to set
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-