taskease.js - Tasks: task #12592, Provide way to check interface...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #12592: Provide way to check interface before instantiation

Submitter:  Gustavo Henke <gustavohenke>
Submitted:  Sun 28 Apr 2013 05:12:07 PM UTC
   
 
Should Start On:  Sun 28 Apr 2013 04:00:00 AM UTC Should be Finished on:  Mon 01 Jul 2013 04:00:00 AM UTC
Category:  Core Priority:  5 - Normal
Item Group:  Development Status:  None
Privacy:  Public Assigned to:  mikegerwitz
Percent Complete:  0% Open/Closed:  Open
Planned Release:  None
Keywords:  reflection

Sun 28 Apr 2013 05:12:07 PM UTC, comment #2: 

This item has been reassigned from the project ease.js bugs tracker to your tracker.

The original report is still available at bugs #38761

Following are the information included in the original report:

[field #0]                  Item ID: 38761
[field #1]                 Group ID: 10991
[field #2]              Open/Closed: Open
[field #3]                 Severity: 3 - Normal
[field #4]                  Privacy: Public
[field #8]                         : Unknown bugs Field Display Type
[field #9]                 Category: Core
[field #10]             Submitted by: gustavohenke
[field #11]              Assigned to: None
[field #12]             Submitted on: Wed 17 Apr 2013 12:30:26 PM EDT
[field #13]                  Summary: Provide way to check interface before instantiation
[field #14]      Original Submission: Hey there, thank you for your amazing job with Ease.js! :)

I would like request any way to check if a class implement an interface, before instantiation.

Somewhat like this:
http://www.php.net/manual/en/reflectionclass.getinterfacenames.php

Thank you in advance.
[field #16]               Item Group: None
[field #17]                   Status: None
[field #18]        Component Version: None
[field #19]         Operating System: None
[field #20]          Reproducibility: None
[field #21]               Size (loc): None
[field #22]            Fixed Release: None
[field #23]          Planned Release: None
[field #24]                   Effort: 0.00
[field #28]                 Priority: 5 - Normal
[field #31]         Percent Complete: 0%
[field #33]                  Release: (master)
[field #58]      Runtime Environment: Node.js
[field #59]     Custom Select Box #2: None
[field #60]     Custom Select Box #3: None
[field #61]     Custom Select Box #4: None
[field #62]     Custom Select Box #5: None
[field #63]     Custom Select Box #6: None
[field #64]     Custom Select Box #7: None
[field #65]     Custom Select Box #8: None
[field #66]     Custom Select Box #9: None
[field #67]    Custom Select Box #10: None

Mike Gerwitz <mikegerwitz>
Group administrator
Sun 28 Apr 2013 05:12:06 PM UTC, comment #1: 

Gustavo,

Thank you for your interest in the project. This feature was planned for a future release along with a reflection API, however my work on the project lately has been on an as-needed or by-request basis. As such, I will incresae the priority of that task (which I have attached as a dependency) and begin work on that feature next.

As a temporary solution, feel free to use the following:

  given_class.___$$meta$$.implemented.

For example:

Class( 'Foo' ).implement( MyInterface ).extend( {} ).___$$meta$$.implemented[ 0 ] === MyInterface.

Please note that _$$meta$$ may not exist in future versions, so only depend on it until reflection support is added. I will keep you up to date on the progress; feel free to join the mailing list for release announcements.

Best regards,
Mike

Mike Gerwitz <mikegerwitz>
Group administrator
Sun 28 Apr 2013 05:12:07 PM UTC, original submission:  

Hey there, thank you for your amazing job with Ease.js! :)

I would like request any way to check if a class implement an interface, before instantiation.

Somewhat like this:
http://www.php.net/manual/en/reflectionclass.getinterfacenames.php

Thank you in advance.

Gustavo Henke <gustavohenke>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items

Digest:
   task dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mikegerwitz (Posted a comment)
  • -email is unavailable- added by gustavohenke (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-28 mikegerwitz Should be Finished on2013-04-28 2013-07-01
        CategoryNone Core
        Item GroupNone Development
        Assigned toNone mikegerwitz
        Keywords reflection
    2013-04-28 mikegerwitz Should Start On- 2013-04-28
        Should be Finished on- 2013-04-28
        Dependencies- Depends on task #12095
    2013-04-28 mikegerwitz Reassign itemease.js, bug #38761 ease.js, task #12592

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code