1
0
Fork 0

Added warning handler to class facade

- This isn't yet tested; have to begin test case for facade
- Do note that the actual calling by MemberBuilderValidator is tested
closure/master
Mike Gerwitz 2011-11-05 12:07:52 -04:00
parent 8bcd55dbbb
commit bc589c035f
1 changed files with 9 additions and 1 deletions

View File

@ -25,6 +25,9 @@
var util = require( __dirname + '/util' ), var util = require( __dirname + '/util' ),
ClassBuilder = require( __dirname + '/ClassBuilder' ), ClassBuilder = require( __dirname + '/ClassBuilder' ),
warn = require( __dirname + '/warn' ),
Warning = warn.Warning,
MethodWrapperFactory = require( __dirname + '/MethodWrapperFactory' ), MethodWrapperFactory = require( __dirname + '/MethodWrapperFactory' ),
wrappers = require( __dirname + '/MethodWrappers' ).standard, wrappers = require( __dirname + '/MethodWrappers' ).standard,
@ -32,7 +35,12 @@ var util = require( __dirname + '/util' ),
require( __dirname + '/MemberBuilder' )( require( __dirname + '/MemberBuilder' )(
MethodWrapperFactory( wrappers.wrapNew ), MethodWrapperFactory( wrappers.wrapNew ),
MethodWrapperFactory( wrappers.wrapOverride ), MethodWrapperFactory( wrappers.wrapOverride ),
require( __dirname + '/MemberBuilderValidator' )() require( __dirname + '/MemberBuilderValidator' )(
function( warning )
{
warn.handle( Warning( warning ) );
}
)
), ),
require( __dirname + '/VisibilityObjectFactoryFactory' ) require( __dirname + '/VisibilityObjectFactoryFactory' )
.fromEnvironment() .fromEnvironment()