@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); } }
public class Toggle extends ICAdapter<Digital, Digital> implements Digital { @ObjectClassDefinition @interface FlipConfig { String name();
boolean a, b; @ObjectClassDefinition @interface AndConfig { String name();
boolean a, b; @ObjectClassDefinition @interface AndConfig { String name();
private int period; @ObjectClassDefinition @interface DebounceConfig { String name();
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 {
public class SegmentNodeStoreMonitorService { @ObjectClassDefinition( name = "Oak Segment Tar Monitoring service", description = "This service is responsible for different configurations related to " +
/** * 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; } }
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 {
private static final Logger log = LoggerFactory.getLogger(JCRNodeChangeEventHandler.class); @ObjectClassDefinition(name = "ACS AEM Commons - HTTP Cache - JCR node change invalidator.", description = "Watches for the configured JCR paths and triggers cache invalidation job.") public @interface Config {
@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); } } }
public class DataStoreTextProviderService { @ObjectClassDefinition( name = "Apache Jackrabbit Oak DataStore PreExtractedTextProvider", description = "Configures a PreExtractedTextProvider based on extracted text stored on FileSystem"
public class DataStoreTextProviderService { @ObjectClassDefinition( name = "Apache Jackrabbit Oak DataStore PreExtractedTextProvider", description = "Configures a PreExtractedTextProvider based on extracted text stored on FileSystem"
private ComponentDisablerDriver componentDisablerDriver; @ObjectClassDefinition(name = "ACS AEM Commons - OSGI Component Disabler", description = "Disables components by configuration") public @interface Config { @AttributeDefinition(name = "Disabled components", description = "The names of the components/services you want to disable", cardinality = Integer.MAX_VALUE)
public class DataStoreTextProviderService { @ObjectClassDefinition( name = "Apache Jackrabbit Oak DataStore PreExtractedTextProvider", description = "Configures a PreExtractedTextProvider based on extracted text stored on FileSystem"
@ObjectClassDefinition(name="ACS AEM Commons - Custom Component Activator List Servlet") public @interface Config { @AttributeDefinition(defaultValue= {HISTORY, FONTS, COLORANTS, LOCATION },name="Components",
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"
public class EvolutionAnalyserImpl implements EvolutionAnalyser { @ObjectClassDefinition(name = "ACS AEM Commons - Resource Evolution Analyser", description = "Have a look at the evolution of a resource on a property/resource level.") public @interface Config {
@ObjectClassDefinition(name = "ACS AEM Commons - Dispacher Cache Control Header - Max Age", description = "Adds a Cache-Control max-age header to content to enable Dispatcher TTL support.") public @interface Config {
@ObjectClassDefinition(name = "ACS AEM Commons - Twitter Client Adapter Factory", description = "Adapter Factory to generate TwitterClient objects.") public @interface Config {