Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mateuszjuszkiewicz/2854554 to your computer and use it in GitHub Desktop.
Parsley metadata for Sourcemate
<metatag name="AsyncInit" description="Parsley" classes="true" variables="false" functions="false" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="completeEvent" datatype="5" description="The event type signalling that the object is fully initialized. Default Event.COMPLETE." required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
<attribute name="errorEvent" datatype="5" description="The event type signalling that the object failed to initialize correctly. Default ErrorEvent.ERROR. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
</metatag>
<metatag name="Destroy" description="Parsley" classes="false" variables="false" functions="true" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="method" datatype="0" description="The name of the method to invoke when the object is fully initialized. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
</metatag>
<metatag name="Factory" description="Parsley" classes="false" variables="false" functions="true" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="method" datatype="0" description="The name of the method that produces the obejcts. Will be automatically set when used as a Metadata Tag." required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
</metatag>
<metatag name="Init" description="Parsley" classes="false" variables="false" functions="true" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="method" datatype="0" description="The name of the method to invoke when the object is fully initialized. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
</metatag>
<metatag name="Inject" description="Parsley" classes="false" variables="true" functions="false" getters="false" setters="true" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="id" datatype="0" description="Specifies the id of the object to inject, if omitted injection by type is performed." required="false" defaultValue="" choices="," asType="String" insertedByProposal="false" />
<attribute name="required" datatype="2" description="Indicates whether the dependency is required, default if omitted: true." required="false" defaultValue="false" choices="," asType="String" insertedByProposal="false" />
</metatag>
<metatag name="Inject" description="Parsley (Inject for methods)" classes="false" variables="false" functions="true" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false"></metatag>
<metatag name="InjectConstructor" description="Parsley" classes="true" variables="false" functions="false" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false"></metatag>
<metatag name="Internal" description="Parsley - May be placed on properties in an AS3 Configuration Class that should not be included in the IOC Container." classes="false" variables="false" functions="false" getters="true" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false"></metatag>
<metatag name="ManagedEvents" description="Parsley" classes="true" variables="false" functions="false" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="names" onlyDefaultSyntax="false" since="" allowCustomAttributes="true">
<attribute name="names" datatype="0" description="The names (types) of the events dispatched from the annotated object that the container should manage. " required="true" defaultValue="" choices="" asType="" insertedByProposal="true" />
<attribute name="scope" datatype="3" description="The scope through which the event should be dispatched. If this attribute is omitted the event will be dispatched through all scopes associated with the Context the dispatching object lives in." required="false" defaultValue="local" choices="global,local," asType="" insertedByProposal="false" />
</metatag>
<metatag name="MessageBinding" description="Parsley" classes="false" variables="true" functions="false" getters="false" setters="true" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="type" datatype="4" description="The type (class) of the message that the annotated property should be bound to. " required="true" defaultValue="" choices="" asType="" insertedByProposal="true" />
<attribute name="messageProperty" datatype="0" description="The name of the property of the message class whose value should be bound to the targetProperty. " required="true" defaultValue="" choices="" asType="" insertedByProposal="true" />
<attribute name="selector" datatype="0" description="An selector value for filtering in addition to message selection by type. See 5.9 Using Selectors. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope from which the message should be received. The default is the global scope. " required="false" defaultValue="local" choices="global,local," asType="" insertedByProposal="false" />
<attribute name="targetProperty" datatype="0" description="The name of the property that the message property value should be bound to. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
</metatag>
<metatag name="MessageDispatcher" description="Parsley" classes="false" variables="true" functions="false" getters="false" setters="false" public="false" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="property" datatype="0" description="The property the injected dispatcher function should be injected into. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope through which the message should be dispatched. If this attribute is omitted the message will be dispatched through all scopes associated with the Context the dispatching object lives in. " required="false" defaultValue="local" choices="global,local," asType="" insertedByProposal="false" />
</metatag>
<metatag name="MessageError" description="Parsley" classes="false" variables="false" functions="true" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="type" datatype="4" description="The type (class) of the message that was passed to the handler or interceptor that threw an Error. If omitted the error handler applies to all message types. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
<attribute name="selector" datatype="0" description="An selector value for filtering in addition to message selection by type. See 5.9 Using Selectors. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope from which the message was dispatched to the handler or interceptor that threw an Error. The default is the global scope. " required="false" defaultValue="local" choices="global,local," asType="" insertedByProposal="false" />
<attribute name="method" datatype="0" description="The interceptor method. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="" asType="" insertedByProposal="true" />
</metatag>
<metatag name="MessageHandler" description="Parsley" classes="false" variables="false" functions="true" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="type" datatype="4" description="The type (class) of the message that the annotated method wishes to receive. If omitted all messages will be received (rarely useful). " required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
<attribute name="selector" datatype="0" description="If specified not the message itself will be passed to the method, but instead the listed properties of the message as method parameters." required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
<attribute name="messageProperties" datatype="0" description="An selector value for filtering in addition to message selection by type. See 5.9 Using Selectors. " required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope from which the message should be received. The default is the global scope." required="false" defaultValue="local" choices="global,local," asType="" insertedByProposal="false" />
<attribute name="method" datatype="0" description="The method the message instance should be passed to. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
</metatag>
<metatag name="MessageInterceptor" description="Parsley" classes="false" variables="false" functions="true" getters="false" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="type" datatype="4" description="The type (class) of the message that the annotated method wishes to intercept. If omitted all messages will be received (rarely useful)." required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
<attribute name="selector" datatype="0" description="An selector value for filtering in addition to message selection by type. See 5.9 Using Selectors. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope from which the message should be received. The default is the global scope." required="false" defaultValue="local" choices="global,local," asType="" insertedByProposal="false" />
<attribute name="method" datatype="0" description="The interceptor method. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="" asType="" insertedByProposal="false" />
</metatag>
<metatag name="ObjectDefinition" description="Parsley" classes="false" variables="false" functions="false" getters="true" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="lazy" datatype="2" description="When set to false (default) the object will be instantiated when the container initializes (but only if the singleton attribute keeps the default value (true). When set to true the object will be instantiated on demand. " required="false" defaultValue="true" choices="," asType="" insertedByProposal="false" />
<attribute name="singleton" datatype="2" description="When set to true (default) the container will only create a single instance of the object, cache it internally and return the same instance upon each request. When set to false it will create a new instance upon each request. " required="false" defaultValue="false" choices="," asType="" insertedByProposal="false" />
<attribute name="id" datatype="0" description="The id the object should be registered with. If omitted the name of the property that produces (or holds) the object will be used as the id. " required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
<attribute name="order" datatype="1" description="The initialization order. Only considered for non-lazy singletons, processed in ascending order. Default int.MAX_VALUE. " required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
</metatag>
<metatag name="ResourceBinding" description="Parsley" classes="false" variables="true" functions="false" getters="true" setters="true" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="bundle" datatype="0" description="The bundle name of the resource. " required="true" defaultValue="" choices="," asType="" insertedByProposal="true" />
<attribute name="key" datatype="0" description="The resource key. " required="true" defaultValue="" choices="," asType="" insertedByProposal="true" />
<attribute name="property" datatype="0" description="The name of the property that the resource should be bound to. Will be automatically set when used as a Metadata Tag. " required="false" defaultValue="" choices="," asType="" insertedByProposal="false" />
</metatag>
<metatag name="Selector" description="Parsley" classes="false" variables="true" functions="false" getters="true" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false"></metatag>
<metatag name="Target" description="Parsley" classes="false" variables="true" functions="false" getters="true" setters="true" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false"></metatag>
<metatag name="Publish" description="Parsley" classes="false" variables="true" functions="false" getters="true" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="objectId" datatype="0" description="The id the property value is published with." required="false" defaultValue="" choices="," asType="String" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope the property value is published to." required="false" defaultValue="global" choices="," asType="String" insertedByProposal="false" />
<attribute name="managed" datatype="0" description="Indicates whether the value published by this property should be added to the Context (turned into a managed object) while being published." required="false" defaultValue="" choices="," asType="Boolean" insertedByProposal="false" />
<attribute name="property" datatype="3" description="The name of the property that holds the value to publish. Will be automatically set when used as a Metadata Tag." required="false" defaultValue="" choices="," asType="String" insertedByProposal="false" />
</metatag>
<metatag name="PublishSubscribe" description="Parsley" classes="false" variables="true" functions="false" getters="true" setters="false" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="objectId" datatype="0" description="The id the property value is published with." required="false" defaultValue="" choices="," asType="String" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope the property value is published to." required="false" defaultValue="global" choices="," asType="String" insertedByProposal="false" />
<attribute name="managed" datatype="0" description="Indicates whether the value published by this property should be added to the Context (turned into a managed object) while being published." required="false" defaultValue="" choices="," asType="Boolean" insertedByProposal="false" />
<attribute name="persistent" datatype="0" description="Indicates whether the value published by this property should be persisted and automatically retrieved back when the application starts the next time. The default implementation is based on Local SharedObjects, but can be swapped. " required="false" defaultValue="" choices="," asType="Boolean" insertedByProposal="false" />
<attribute name="property" datatype="3" description="The name of the property that holds the value to publish. Will be automatically set when used as a Metadata Tag." required="false" defaultValue="" choices="," asType="String" insertedByProposal="false" />
</metatag>
<metatag name="Subscribe" description="Parsley" classes="false" variables="true" functions="false" getters="false" setters="true" public="true" private="false" protected="false" internal="false" defaultAttribute="" onlyDefaultSyntax="false" since="" allowCustomAttributes="false">
<attribute name="objectId" datatype="0" description="The id the property value is published with." required="false" defaultValue="" choices="," asType="String" insertedByProposal="false" />
<attribute name="scope" datatype="3" description="The scope the property value is published to." required="false" defaultValue="global" choices="," asType="String" insertedByProposal="false" />
<attribute name="property" datatype="3" description="The name of the property that holds the value to publish. Will be automatically set when used as a Metadata Tag." required="false" defaultValue="" choices="," asType="String" insertedByProposal="false" />
</metatag>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment