/** * A Tapestry module that is started for every specification which uses Spock's * Tapestry extension. * * @author Peter Niederwieser */ @Marker(SpockTapestry.class) public class ExtensionModule { public static ObjectLocator build(ObjectLocator locator) { return locator; } }
/** * A Tapestry module that is started for every specification which uses Spock's * Tapestry extension. * * @author Peter Niederwieser */ @Marker(SpockTapestry.class) public class ExtensionModule { public static ObjectLocator build(ObjectLocator locator) { return locator; } }
@Marker(RedMarker.class) public Greeter buildRedGreeter() { return new Greeter() { @Override public String getGreeting() { return "Red"; } }; }
@Marker(RedMarker.class) public Greeter buildRedGreeter() { return new Greeter() { @Override public String getGreeting() { return "Red"; } }; }
/** * Ordered contributions to the MasterDispatcher service allow different URL * matching strategies to occur. */ @Marker(Primary.class) public Dispatcher buildMasterDispatcher(List<Dispatcher> configuration) { return chainBuilder.build(Dispatcher.class, configuration); }
/** * Returns a {@link PlasticProxyFactory} that can be used to create extra classes around component classes. This * factory will be cleared whenever an underlying component class is discovered to have changed. Use of this * factory implies that your code will become aware of this (if necessary) to discard any cached object (alas, * this currently involves dipping into the internals side to register for the correct notifications). Failure to * properly clean up can result in really nasty PermGen space memory leaks. */ @Marker(ComponentLayer.class) public PlasticProxyFactory buildComponentProxyFactory(ComponentInstantiatorSource source) { return shadowBuilder.build(source, "proxyFactory", PlasticProxyFactory.class); }
/** * Builds {@link PageRenderLinkTransformer} service as a chain of command. * * @since 5.2.0 */ @Marker(Primary.class) public PageRenderLinkTransformer buildPageRenderLinkTransformer(List<PageRenderLinkTransformer> configuration) { return chainBuilder.build(PageRenderLinkTransformer.class, configuration); }
@Marker(BlueMarker.class) public NameListHolder buildGreek(final List<String> configuration) { return new NameListHolder() { @Override public List<String> getNames() { return configuration; } }; }
@Marker(BlueMarker.class) public Runnable build(final List<String> configuration) { return new Runnable() { @Override public void run() { } }; }
@Marker(GreenMarker.class) public Greeter buildGreenGreeter() { return new Greeter() { @Override public String getGreeting() { return "Green"; } }; }
/** * Defines a chain-of-command for handling application context customization. This allows the Spring context to be * configured before it is initially {@linkplain org.springframework.context.ConfigurableApplicationContext#refresh() * refreshed}. */ @Marker(Primary.class) public static ApplicationContextCustomizer buildApplicationContextCustomizer( List<ApplicationContextCustomizer> configuration, ChainBuilder builder) { return builder.build(ApplicationContextCustomizer.class, configuration); }
@Marker(RedMarker.class) public Greeter buildRedGreeter() { return new Greeter() { @Override public String getGreeting() { return "Red"; } }; }
/** * @since 5.1.0.0 */ @Marker(ComponentMessages.class) public static InvalidationEventHub buildComponentMessagesInvalidationEventHub(ComponentMessagesSource messagesSource) { return messagesSource.getInvalidationEventHub(); }
/** * @since 5.1.1.0 */ @Marker(Primary.class) public StackTraceElementAnalyzer buildMasterStackTraceElementAnalyzer(List<StackTraceElementAnalyzer> configuration) { return chainBuilder.build(StackTraceElementAnalyzer.class, configuration); }
/** * Builds {@link ComponentEventLinkTransformer} service as a chain of command. * * @since 5.2.0 */ @Marker(Primary.class) public ComponentEventLinkTransformer buildComponentEventLinkTransformer( List<ComponentEventLinkTransformer> configuration) { return chainBuilder.build(ComponentEventLinkTransformer.class, configuration); }
@Marker(GreenMarker.class) public NameListHolder buildHebrew(final List<String> configuration) { return new NameListHolder() { @Override public List<String> getNames() { return configuration; } }; }
/** * The component event result processor used for normal component requests. */ @Marker( {Primary.class, Traditional.class}) public ComponentEventResultProcessor buildComponentEventResultProcessor( Map<Class, ComponentEventResultProcessor> configuration, @ComponentClasses InvalidationEventHub hub) { return constructComponentEventResultProcessor(configuration, hub); }
@Marker(ContextProvider.class) public static AssetFactory buildContextAssetFactory(ApplicationGlobals globals, AssetPathConstructor assetPathConstructor, ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource) { return new ContextAssetFactory(compressionAnalyzer, resourceChangeTracker, streamableResourceSource, assetPathConstructor, globals.getContext()); }
/** * The component event result processor used for Ajax-oriented component * requests. */ @Marker(Ajax.class) public ComponentEventResultProcessor buildAjaxComponentEventResultProcessor( Map<Class, ComponentEventResultProcessor> configuration, @ComponentClasses InvalidationEventHub hub) { return constructComponentEventResultProcessor(configuration, hub); }
@Marker(Primary.class) public RequestHandler buildRequestHandler(Logger logger, List<RequestFilter> configuration, @Primary Dispatcher masterDispatcher) { RequestHandler terminator = new RequestHandlerTerminator(masterDispatcher); return pipelineBuilder.build(logger, RequestHandler.class, RequestFilter.class, configuration, terminator); }