Skip to content

Commit

Permalink
Apply code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper Blues committed Jan 30, 2014
1 parent 3051577 commit 4169669
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Source/Factory/TyphoonComponentFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ - (id)init
if (self)
{
_registry = [[NSMutableArray alloc] init];
_singletons = (id<TyphoonComponentsPool>)[[NSMutableDictionary alloc] init];
_singletons = (id <TyphoonComponentsPool>)[[NSMutableDictionary alloc] init];
_weakSingletons = [TyphoonWeekComponentsPool new];
_objectGraphSharedInstances = (id<TyphoonComponentsPool>)[[NSMutableDictionary alloc] init];
_objectGraphSharedInstances = (id <TyphoonComponentsPool>)[[NSMutableDictionary alloc] init];
_stack = [TyphoonCallStack stack];
_factoryPostProcessors = [[NSMutableArray alloc] init];
_componentPostProcessors = [[NSMutableArray alloc] init];
[self attachPostProcessor:[[TyphoonParentReferenceHydratingPostProcessor alloc] init]];

}
return self;
}
Expand Down Expand Up @@ -279,7 +279,8 @@ - (void)instantiateEagerSingletons
}];
}

- (id)instanceForDefinition:(TyphoonDefinition*)definition fromPool:(id<TyphoonComponentsPool>)pool buildBlock:(TyphoonInstanceBuildBlock)buildBlock
- (id)instanceForDefinition:(TyphoonDefinition*)definition fromPool:(id <TyphoonComponentsPool>)pool
buildBlock:(TyphoonInstanceBuildBlock)buildBlock
{
NSParameterAssert(buildBlock);
@synchronized (self)
Expand All @@ -294,16 +295,18 @@ - (id)instanceForDefinition:(TyphoonDefinition*)definition fromPool:(id<TyphoonC
}
}

- (id) sharedObjectGraphInstanceForDefinition:(TyphoonDefinition*)definition fromPool:(id<TyphoonComponentsPool>)pool
- (id)sharedObjectGraphInstanceForDefinition:(TyphoonDefinition*)definition fromPool:(id <TyphoonComponentsPool>)pool
{
return [self instanceForDefinition:definition fromPool:pool buildBlock:^id(TyphoonDefinition *definition) {
return [self instanceForDefinition:definition fromPool:pool buildBlock:^id(TyphoonDefinition* definition)
{
return [self buildSharedInstanceForDefinition:definition];
}];
}

- (id) sharedInstanceForDefinition:(TyphoonDefinition*)definition fromPool:(id<TyphoonComponentsPool>)pool
- (id)sharedInstanceForDefinition:(TyphoonDefinition*)definition fromPool:(id <TyphoonComponentsPool>)pool
{
return [self instanceForDefinition:definition fromPool:pool buildBlock:^id(TyphoonDefinition *definition) {
return [self instanceForDefinition:definition fromPool:pool buildBlock:^id(TyphoonDefinition* definition)
{
return [self buildInstanceWithDefinition:definition];
}];
}
Expand Down

0 comments on commit 4169669

Please sign in to comment.