Skip to content
Browse files

renamed dev project to match

  • Loading branch information...
1 parent 96b343f commit c65e9d7c46798c7c45607701ea0246339edbbf18 @seanhess committed Oct 18, 2009
View
6 test/dev/src/dev/interfaces/IBook.as → test/dev/src/dev/dependency/DBook.as
@@ -1,10 +1,10 @@
-package dev.interfaces
+package dev.dependency
{
import net.seanhess.zero.dependency.DependencyInterface;
- public class IBook extends DependencyInterface
+ public class DBook extends DependencyInterface
{
- public function IBook(context:*) { super(context) }
+ public function DBook(context:*) { super(context) }
public function set title(value:String):void { i.title = value }
public function get title():String { return i.title }
View
6 test/dev/src/dev/interfaces/ILibrary.as → test/dev/src/dev/dependency/DLibrary.as
@@ -1,4 +1,4 @@
-package dev.interfaces
+package dev.dependency
{
import mx.collections.IList;
@@ -26,9 +26,9 @@ package dev.interfaces
// public class DLibrary extends DependencyInterface // that's a nice touch. It is an interface to a dependency
[Event(name="newBook", type="flash.events.Event")]
- public class ILibrary extends DependencyInterface
+ public class DLibrary extends DependencyInterface
{
- public function ILibrary(context:*=null):void { super(context); }
+ public function DLibrary(context:*=null):void { super(context); }
public function get allBooks():IList { return i.allBooks };
View
4 test/dev/src/dev/interfaces/ILog.as → test/dev/src/dev/dependency/DLog.as
@@ -1,8 +1,8 @@
-package dev.interfaces
+package dev.dependency
{
import net.seanhess.zero.interfaces.Interface;
- public class ILog extends Interface
+ public class DLog extends Interface
{
public function message(value:String):void { i.message(value); } // or "title" or "arguments"
}
View
7 test/dev/src/dev/interfaces/IWoot.as
@@ -1,7 +0,0 @@
-package dev.interfaces
-{
- public interface IWoot
- {
- function charlie(test:String):void;
- }
-}
View
7 test/dev/src/dev/interfaces/Nothing.as
@@ -1,7 +0,0 @@
-package dev.interfaces
-{
- public class Nothing
- {
- public var henry:String = "henry";
- }
-}
View
7 test/dev/src/dev/services/Library.as
@@ -1,8 +1,7 @@
package dev.services
{
- import dev.interfaces.IBook;
- import dev.interfaces.ILibrary;
- import dev.interfaces.ILog;
+
+ import dev.dependency.DBook;
import flash.events.Event;
import flash.events.EventDispatcher;
@@ -25,7 +24,7 @@ package dev.services
public function createBook(title:String):void
{
- var book:IBook = new IBook(this);
+ var book:DBook = new DBook(this);
book.title = title + Math.random();
View
10 test/dev/src/main.mxml
@@ -9,7 +9,7 @@
<fx:Script>
<![CDATA[
- import dev.interfaces.ILibrary;
+ import dev.dependency.DLibrary;
import dev.services.Book;
import dev.services.Library;
@@ -21,15 +21,15 @@
private var register:Register = new Register();
[Bindable]
- private var library:ILibrary;
+ private var library:DLibrary;
private function init():void
{
- register.addRule(new Rule(Rule.IMPLEMENT, Library, "dev.interfaces.ILibrary"));
- register.addRule(new Rule(Rule.FACTORY, Book, "dev.interfaces.IBook"));
+ register.addRule(new Rule(Rule.IMPLEMENT, Library, "dev.dependency.DLibrary"));
+ register.addRule(new Rule(Rule.FACTORY, Book, "dev.dependency.DBook"));
trace("HUH?");
- library = new ILibrary(this);
+ library = new DLibrary(this);
library.addEventListener("newBook", function(event:Event):void {
trace("Called CREATE");
});

0 comments on commit c65e9d7

Please sign in to comment.
Something went wrong with that request. Please try again.