public ComponentResourcesRenderer(@Primary ObjectRenderer masterRenderer) { this.masterRenderer = masterRenderer; }
public UploadExceptionFilter(MultipartDecoder decoder, @Traditional @Primary ComponentEventResultProcessor resultProcessor, ComponentSource componentSource) { this.decoder = decoder; this.resultProcessor = resultProcessor; this.componentSource = componentSource; }
public ClassResultProcessor(ComponentClassResolver resolver, @Traditional @Primary ComponentEventResultProcessor primary) { this.resolver = resolver; this.primary = primary; }
public PageNameComponentEventResultProcessor(LinkSource linkSource, @Traditional @Primary ComponentEventResultProcessor primary) { this.linkSource = linkSource; this.primary = primary; }
public UploadExceptionFilter(MultipartDecoder decoder, @Traditional @Primary ComponentEventResultProcessor resultProcessor, ComponentSource componentSource) { this.decoder = decoder; this.resultProcessor = resultProcessor; this.componentSource = componentSource; }
@Primary public static ClasspathAssetProtectionRule buildClasspathAssetProtectionRule( List<ClasspathAssetProtectionRule> rules, ChainBuilder chainBuilder) { return chainBuilder.build(ClasspathAssetProtectionRule.class, rules); }
public UnknownActivationContextHandlerImpl(Logger logger, @Traditional @Primary ComponentEventResultProcessor resultProcessor) { this.logger = logger; this.resultProcessor = resultProcessor; }
public ComponentInstanceResultProcessor(Logger logger, @Traditional @Primary ComponentEventResultProcessor resultProcessor) { this.logger = logger; this.resultProcessor = resultProcessor; }
public RequestRenderer(@Primary ObjectRenderer masterObjectRenderer, Context context, @Symbol(SymbolConstants.CONTEXT_PATH) String contextPath) { this.masterObjectRenderer = masterObjectRenderer; this.context = context; this.contextPath = contextPath; }
public PageRenderRequestHandlerImpl(RequestPageCache cache, @Traditional @Primary ComponentEventResultProcessor resultProcessor, PageResponseRenderer pageResponseRenderer, PageActivator pageActivator, Request request) { this.cache = cache; this.resultProcessor = resultProcessor; this.pageResponseRenderer = pageResponseRenderer; this.pageActivator = pageActivator; this.request = request; }
/** * Adds the CommitAfter annotation work, to process the * {@link org.apache.tapestry5.hibernate.annotations.CommitAfter} annotation. */ @Contribute(ComponentClassTransformWorker2.class) @Primary public static void provideCommitAfterAnnotationSupport( OrderedConfiguration<ComponentClassTransformWorker2> configuration) { // If logging is enabled, we want logging to be the first advice, wrapping around the commit advice. configuration.addInstance("CommitAfter", CommitAfterWorker.class, "after:Log"); }
/** * Adds the CommitAfter annotation work, to process the * {@link org.apache.tapestry5.hibernate.annotations.CommitAfter} annotation. */ @Contribute(ComponentClassTransformWorker2.class) @Primary public static void provideCommitAfterAnnotationSupport( OrderedConfiguration<ComponentClassTransformWorker2> configuration) { // If logging is enabled, we want logging to be the first advice, wrapping around the commit advice. configuration.addInstance("CommitAfter", CommitAfterWorker.class, "after:Log"); }
public ServletApplicationInitializer buildServletApplicationInitializer(Logger logger, List<ServletApplicationInitializerFilter> configuration, @Primary ApplicationInitializer initializer) { ServletApplicationInitializer terminator = new ServletApplicationInitializerTerminator(initializer); return pipelineBuilder.build(logger, ServletApplicationInitializer.class, ServletApplicationInitializerFilter.class, configuration, terminator); }
@Contribute(ComponentClassTransformWorker2.class) @Primary public static void provideClassTransformWorkers(OrderedConfiguration<ComponentClassTransformWorker2> configuration) { configuration.addInstance("PersistenceContext", PersistenceContextWorker.class, "after:Property"); configuration.addInstance("JPACommitAfter", CommitAfterWorker.class, "after:Log"); }
@Contribute(ResourceMinimizer.class) @Primary public static void setupDefaultResourceMinimizers(MappedConfiguration<String, ResourceMinimizer> configuration) { configuration.addInstance("text/css", CSSMinimizer.class); configuration.addInstance("text/javascript", GoogleClosureMinimizer.class); }
@Contribute(Dispatcher.class) @Primary public static void setupAssetDispatch(OrderedConfiguration<Dispatcher> configuration, @AssetRequestDispatcher Dispatcher assetDispatcher) { // This goes first because an asset to be streamed may have an file // extension, such as // ".html", that will confuse the later dispatchers. configuration.add("Asset", assetDispatcher, "before:ComponentEvent"); }
@Contribute(ComponentClassTransformWorker2.class) @Primary public static void provideClassTransformWorkers(OrderedConfiguration<ComponentClassTransformWorker2> configuration) { configuration.addInstance("PersistenceContext", PersistenceContextWorker.class, "after:Property"); configuration.addInstance("JPACommitAfter", CommitAfterWorker.class, "after:Log"); }
@Contribute(ResourceMinimizer.class) @Primary public static void setupDefaultResourceMinimizers(MappedConfiguration<String, ResourceMinimizer> configuration) { configuration.addInstance("text/css", CSSMinimizer.class); configuration.addInstance("text/javascript", GoogleClosureMinimizer.class); }
@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); }