When Registry#shutdown is called for the first time, it will extend this module. This will make several operations illegal, like querying a service.
Methods
Public Instance methods
Raises a DisallowedOperationException.
[ show source ]
# File lib/copland/registry.rb, line 361
361: def add_package( *args )
362: raise DisallowedOperationException,
363: "cannot add package to registry after shutdown"
364: end
Raises a DisallowedOperationException.
[ show source ]
# File lib/copland/registry.rb, line 355
355: def configuration_point( *args )
356: raise DisallowedOperationException,
357: "cannot get configuration point from registry after shutdown"
358: end
Raises a DisallowedOperationException.
[ show source ]
# File lib/copland/registry.rb, line 343
343: def package( *args )
344: raise DisallowedOperationException,
345: "cannot get package from registry after shutdown"
346: end
Raises a DisallowedOperationException.
[ show source ]
# File lib/copland/registry.rb, line 349
349: def service( *args )
350: raise DisallowedOperationException,
351: "cannot get service from registry after shutdown"
352: end
Does nothing.
[ show source ]
# File lib/copland/registry.rb, line 333
333: def shutdown( *args )
334: # do nothing
335: end
Returns true.
[ show source ]
# File lib/copland/registry.rb, line 338
338: def shutdown?
339: true
340: end