Alytis/HyperBone — pull request #6 by monokrome (2014-02-07 07:09:13+00:00)
Title: Flexible object types

Leverage the `Bone` registry to allow a user to provide any type of `Backbone` types they want.

For instance, you could ask for `RelationalModel`, `UniqueModel`, `AssociatedModel`, `PageableCollection` or anything else that may be requested with something similar to:

```javascript
myBone = new HyperBone.Bone({
serviceType: MyServiceType,
modelType: Backbone.RelationalModel,
collectionType: Backbone.PageableCollection
});
```

During discovery, implementations of `ServiceType` are able to hook into this using `@bone.createModel` or `@bone.createCollection`.