Package jadex.bridge.service.types.cms
Class CreationInfo
- java.lang.Object
-
- jadex.bridge.service.types.cms.CreationInfo
-
public class CreationInfo extends java.lang.Object
A 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>
args
The arguments (map with name/value pairs).protected RequiredServiceBinding[]
bindings
The bindings.protected java.lang.String
config
The configuration.protected java.lang.String
filename
The file name.protected java.lang.String[]
imports
The imports.protected java.lang.String
localtype
The local component type name.protected IMonitoringService.PublishEventLevel
monitoring
protected java.lang.String
name
The instance name.protected ProvidedServiceInfo[]
pinfos
The provided service infos.protected java.lang.Object
pojo
The pojo (optional).protected IResourceIdentifier
rid
The resource identifier.protected java.lang.Boolean
suspend
The suspend flag (default: false).protected java.lang.Boolean
synchronous
The 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 CreationInfo
addArgument(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.String
getConfiguration()
Get the configuration.java.lang.String
getFilename()
Get the filename.java.lang.String[]
getImports()
Get the imports.java.lang.String
getLocalType()
Get the localtype.IMonitoringService.PublishEventLevel
getMonitoring()
Get the monitoring.java.lang.String
getName()
Get the instance name.java.lang.Object
getPojo()
Get the pojo.ProvidedServiceInfo[]
getProvidedServiceInfos()
Get the service infos.RequiredServiceBinding[]
getRequiredServiceBindings()
Get the bindings.IResourceIdentifier
getResourceIdentifier()
Get the resource identifier for loading the component model.java.lang.Boolean
getSuspend()
Get the suspend flag.java.lang.Boolean
getSynchronous()
Get the synchronous.CreationInfo
setArguments(java.util.Map<java.lang.String,java.lang.Object> args)
Set the arguments.CreationInfo
setConfiguration(java.lang.String config)
Set the configuration.CreationInfo
setFilename(java.lang.String filename)
Set the filename.CreationInfo
setFilenameClass(java.lang.Class<?> clazz)
Set the filename.CreationInfo
setImports(java.lang.String[] imports)
Set the importsCreationInfo
setLocalType(java.lang.String localtype)
Set the localtype.CreationInfo
setMonitoring(IMonitoringService.PublishEventLevel monitoring)
Set the monitoring.CreationInfo
setName(java.lang.String name)
Set the name.CreationInfo
setPojo(java.lang.Object pojo)
Set the pojo.CreationInfo
setProvidedServiceInfos(ProvidedServiceInfo[] pinfos)
Set the ProvidedServiceInfos.CreationInfo
setRequiredServiceBindings(RequiredServiceBinding[] bindings)
Set the bindings.CreationInfo
setResourceIdentifier(IResourceIdentifier rid)
Set the resource identifier for loading the component model.CreationInfo
setSuspend(java.lang.Boolean suspend)
Set the suspend flag.CreationInfo
setSynchronous(java.lang.Boolean synchronous)
Set the synchronous.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-