Class 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 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).
      • suspend

        protected java.lang.Boolean suspend
        The suspend flag (default: false).
      • synchronous

        protected java.lang.Boolean synchronous
        The synchronous flag (default: false).
      • imports

        protected java.lang.String[] imports
        The imports.
      • 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.
      • 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