public final class SlingContextBuilder extends Object
SlingContext instances with different sets of parameters.| Constructor and Description |
|---|
SlingContextBuilder()
Create builder with default resource resolver type.
|
SlingContextBuilder(ResourceResolverType resourceResolverType)
Create builder with given resource resolver type.
|
| Modifier and Type | Method and Description |
|---|---|
SlingContextBuilder |
afterSetUp(SlingContextCallback afterSetUpCallback) |
SlingContextBuilder |
afterTearDown(SlingContextCallback afterTearDownCallback) |
SlingContextBuilder |
beforeSetUp(SlingContextCallback beforeSetUpCallback) |
SlingContextBuilder |
beforeTearDown(SlingContextCallback beforeTearDownCallback) |
SlingContext |
build() |
SlingContextBuilder |
resourceResolverFactoryActivatorProps(Map<String,Object> props)
Allows to override OSGi configuration parameters for the Resource Resolver Factory Activator service.
|
SlingContextBuilder |
resourceResolverType(ResourceResolverType resourceResolverType) |
public SlingContextBuilder()
public SlingContextBuilder(ResourceResolverType resourceResolverType)
resourceResolverType - Resource resolver type.public SlingContextBuilder resourceResolverType(ResourceResolverType resourceResolverType)
resourceResolverType - Resource resolver type.public SlingContextBuilder beforeSetUp(SlingContextCallback beforeSetUpCallback)
beforeSetUpCallback - Allows the application to register an own callback function that is called before the built-in setup rules are executed.public SlingContextBuilder afterSetUp(SlingContextCallback afterSetUpCallback)
afterSetUpCallback - Allows the application to register an own callback function that is called after the built-in setup rules are executed.public SlingContextBuilder beforeTearDown(SlingContextCallback beforeTearDownCallback)
beforeTearDownCallback - Allows the application to register an own callback function that is called before the built-in teardown rules are executed.public SlingContextBuilder afterTearDown(SlingContextCallback afterTearDownCallback)
afterTearDownCallback - Allows the application to register an own callback function that is after before the built-in teardown rules are executed.public SlingContextBuilder resourceResolverFactoryActivatorProps(Map<String,Object> props)
props - Configuration propertiespublic SlingContext build()
SlingContext instance.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.