Refine search
@Component public class DelegatingLoaderWriterStoreProviderFactory implements ServiceFactory<DelegatingLoaderWriterStoreProvider> { @Override public DelegatingLoaderWriterStoreProvider create(ServiceCreationConfiguration<DelegatingLoaderWriterStoreProvider> configuration) { return new DelegatingLoaderWriterStoreProvider(); } @Override public Class<? extends DelegatingLoaderWriterStoreProvider> getServiceType() { return DelegatingLoaderWriterStoreProvider.class; } }
@Component(service = Servlet.class, property = { SLING_SERVLET_PATHS + "=/bin/acs-commons/dynamic-touchui-clientlibs.json"}) private static final String[] DEFAULT_CATEGORIES = new String[] { CATEGORY_LIMIT, CATEGORY_PLACEHOLDER }; @ObjectClassDefinition(name = "ACS AEM Commons - Dynamic Touch UI Client Library Loader", description = "Allows for dynamic loading of optional Touch UI Client Libraries") public @interface Config { @AttributeDefinition(description = "Exclude all client library categories") boolean exclude_all(); @AttributeDefinition(description = "Client Library Categories", defaultValue = {CATEGORY_LIMIT, CATEGORY_PLACEHOLDER}) String[] categories() default {CATEGORY_LIMIT, CATEGORY_PLACEHOLDER}; @Reference private HtmlLibraryManager htmlLibraryManager;
@Component(property = { "webconsole.configurationFactory.nameHint" + "=" + "Expires Daily at: {expires.time} for Patterns: [{filter.pattern}]", }, factory = "com.adobe.acs.commons.http.headers.impl.DailyExpiresHeaderFilter", configurationPolicy = ConfigurationPolicy.REQUIRE) @Designate(ocd = DailyExpiresHeaderFilter.Config.class, factory=true) // @formatter:on public class DailyExpiresHeaderFilter extends AbstractExpiresHeaderFilter { @ObjectClassDefinition(name = "ACS AEM Commons - Dispatcher Expires Header - Daily", description = "Adds an Expires header to content to enable Dispatcher TTL support.") public @interface Config { @AttributeDefinition(name = "Filter Patterns", description = "Patterns on which to apply this Expires rule.", cardinality = Integer.MAX_VALUE) String[] filter_pattern(); @AttributeDefinition(name = "Expires Time", description = "Time each day at which resources will expire. Must match SimpleDateFormat of 'HH:mm'.") String expires_time(); } @Override protected void adjustExpires(Calendar next) { if (next.before(Calendar.getInstance())) { next.add(Calendar.DAY_OF_MONTH, 1); } } }
@Designate(ocd=Not.Config.class, factory=true) @Component(service=IC.class, name="osgi.enroute.iot.toolkit.not") public class Not extends ICAdapter<Digital, Digital> implements Digital { @ObjectClassDefinition @interface Config { String name(); } @Override public void set(boolean value) throws Exception { out().set(!value); } @Reference protected void setCircuitBoard(CircuitBoard board) { super.setCircuitBoard(board); } }
@Component( service = UseProvider.class, configurationPid = "org.apache.sling.scripting.sightly.impl.engine.extension.use.ResourceUseProvider", @AttributeDefinition( name = "Service Ranking", description = "The Service Ranking value acts as the priority with which this Use Provider is queried to return an " +
component.name = comp.name(); component.factory = comp.factory(); component.configurationPolicy = comp.configurationPolicy(); if (annotation.get("enabled") != null) component.enabled = comp.enabled(); if (annotation.get("factory") != null) component.factory = comp.factory(); if (annotation.get("immediate") != null) component.immediate = comp.immediate(); if (annotation.get("servicefactory") != null) component.servicefactory = comp.servicefactory(); String properties[] = comp.properties(); if (properties != null) for (String entry : properties) component.properties.add(entry); doProperties(comp.property()); Object [] x = annotation.get("service");
@Component(service=ProcessDefinitionFactory.class) public class DeepPruneFactory extends AdminOnlyProcessDefinitionFactory<DeepPrune> { @Reference private JobManager jobManager; @Override public String getName() { return "Deep Prune"; } @Override public DeepPrune createProcessDefinitionInstance() { return new DeepPrune(jobManager); } }
@Component(configurationPolicy = ConfigurationPolicy.REQUIRE) @Designate(ocd = Configuration.class) public class SegmentNodeStoreMonitorService { @ObjectClassDefinition( name = "Oak Segment Tar Monitoring service", description = "This service is responsible for different configurations related to " + @AttributeDefinition( name = "Writer groups", description = "Writer groups for which commits are tracked individually" @Reference private SegmentNodeStoreStatsMBean snsStatsMBean;
/** * Editor configuration */ @Component(service = EditorConfig.class) @Designate(ocd = EditorConfig.Config.class) public class EditorConfig { @ObjectClassDefinition(name = "wcm.io Context-Aware Configuration Editor", description = "Configure the Editor for Apache Sling Context-Aware Configuration.") @interface Config { @AttributeDefinition(description = "Enable the Configuration Editor and HTTP APIs.") boolean enabled() default true; } private boolean enabled; @Activate private void activate(Config config) { this.enabled = config.enabled(); } public boolean isEnabled() { return this.enabled; } }
@Designate(ocd=FlipConfig.class, factory=true) @Component(service=IC.class, name="osgi.enroute.iot.toolkit.toggle") public class Toggle extends ICAdapter<Digital, Digital> implements Digital { @ObjectClassDefinition @interface FlipConfig { String name();
component.name = comp.name(); component.factory = comp.factory(); component.configurationPolicy = comp.configurationPolicy(); if (annotation.get("enabled") != null) component.enabled = comp.enabled(); if (annotation.get("factory") != null) component.factory = comp.factory(); if (annotation.get("immediate") != null) component.immediate = comp.immediate(); if (annotation.get("servicefactory") != null) component.servicefactory = comp.servicefactory(); component.configurationPid = comp.configurationPid(); component.xmlns = comp.xmlns(); String properties[] = comp.properties(); if (properties != null) for (String entry : properties) component.properties.add(entry); doProperties(comp.property()); Object[] x = annotation.get("service");
@Component(service = Servlet.class, property = { SLING_SERVLET_PATHS + "=/bin/acs-commons/dynamic-classicui-clientlibs.json" static final String CATEGORY_PLACEHOLDER = "acs-commons.cq-widgets.add-ons.classicui-parsys-placeholder"; @ObjectClassDefinition( name = "ACS AEM Commons - Dynamic Classic UI Client Library Loader", description = "Allows for dynamic loading of optional Classic UI Client Libraries" @AttributeDefinition(description = "Exclude all client library categories") boolean exclude_all(); @AttributeDefinition(description = "Client Library Categories", defaultValue = {CATEGORY_LIMIT, CATEGORY_PLACEHOLDER}) String[] categories(); @Reference private HtmlLibraryManager htmlLibraryManager;
@Component public class ClusteredWriteBehindStoreProviderFactory implements ServiceFactory<ClusteredWriteBehindStore.Provider> { @Override public ClusteredWriteBehindStore.Provider create(ServiceCreationConfiguration<ClusteredWriteBehindStore.Provider> configuration) { return new ClusteredWriteBehindStore.Provider(); } @Override public Class<? extends ClusteredWriteBehindStore.Provider> getServiceType() { return ClusteredWriteBehindStore.Provider.class; } }
@Component(service=FormsRouter.class, configurationPolicy=ConfigurationPolicy.REQUIRE) public class FormsRouterImpl implements FormsRouter { private static final Logger log = LoggerFactory.getLogger(FormsRouterImpl.class); @ObjectClassDefinition(name = "ACS AEM Commons - Forms Router", description = "Provides functionality for routing ACS AEM Commons FORM Requests through AEM.") public @interface Config { @AttributeDefinition(name = "Forms Suffix", description = "HTTP Request Suffix used to identify ACS AEM Commons Forms POST Requests and route them " + "appropriately. [ Default: /submit/form ]",
@Designate(ocd=AndConfig.class, factory=true) @Component(service=IC.class, name="osgi.enroute.iot.toolkit.and") public class And extends ICAdapter<Binary, Digital> implements Binary { boolean a, b; @ObjectClassDefinition @interface AndConfig { String name();
component.name = comp.name(); component.factory = comp.factory(); component.configurationPolicy = comp.configurationPolicy(); if (annotation.get("enabled") != null) component.enabled = comp.enabled(); if (annotation.get("factory") != null) component.factory = comp.factory(); if (annotation.get("immediate") != null) component.immediate = comp.immediate(); if (annotation.get("servicefactory") != null) component.scope = comp.servicefactory()? ServiceScope.BUNDLE: ServiceScope.SINGLETON; if (annotation.get("scope") != null && comp.scope() != ServiceScope.DEFAULT) { component.scope = comp.scope(); if (comp.scope() == ServiceScope.PROTOTYPE) { component.updateVersion(V1_3); component.configurationPid = comp.configurationPid(); if (component.configurationPid.length > 1) { component.updateVersion(V1_3); component.xmlns = comp.xmlns(); String properties[] = comp.properties(); if (properties != null) for (String entry : properties) { doProperty(comp.property()); Object[] x = annotation.get("service");
@Component public class AdobeioHelperImpl implements AdobeioHelper { @Reference private HttpClientBuilderFactory clientBuilderFactory; @Override public CloseableHttpClient getHttpClient(int timeoutInMilliSeconds) { RequestConfig requestConfig = RequestConfig.copy(RequestConfig.DEFAULT) .setSocketTimeout(timeoutInMilliSeconds) .setConnectTimeout(timeoutInMilliSeconds) .setConnectionRequestTimeout(timeoutInMilliSeconds) .build(); return clientBuilderFactory.newBuilder().setDefaultRequestConfig(requestConfig).build(); } }
@Component(immediate = true, service= {TopologyEventListener.class, Runnable.class}, configurationPolicy=ConfigurationPolicy.REQUIRE, property= { "scheduler.concurrent" + "=" + "false" private static final Map<String, Object> AUTH_INFO; @ObjectClassDefinition(name= "ACS AEM Commons - Twitter Feed Refresh Scheduler", description = "Schedule job which refreshes Twitter Feed components on a recurring basis") public @interface Config { @AttributeDefinition( defaultValue = "0 0/15 * * * ?", name = "Refresh Interval", description = "Twitter Feed Refresh interval (Quartz Cron Expression)") String scheduler_expression(); @Reference private ResourceResolverFactory resourceResolverFactory; @Reference private TwitterFeedUpdater twitterFeedService;