/** * {@inheritDoc} * This implementation invokes {@link #setProperty} with the * filed value. */ @Override public Object invoke(ConfigHandler handler, Object[] args, Object proxy) { setProperty(handler.getPersister(), args[0]); return null; }
/** * @return Configuration directory. {@link Scripting} searches for dynamic resources here. * Must not end with "/" */ @Property("cuba.confDir") String getConfDir();
@Source(type = SourceType.APP) public interface ImapEncryptionConfig extends Config { @Property("imap.encryption.key") String getEncryptionKey(); @Property("imap.encryption.iv") String getEncryptionIv(); }
@Override public ConfigMethod newInstance(Class<?> configInterface, Method configMethod) { return new ConfigGetter(configInterface, configMethod); } };
@Override public ConfigMethod newInstance(Class<?> configInterface, Method configMethod) { return new ConfigDefaultMethod(configInterface, configMethod); } };
@Override public ConfigMethod newInstance(Class<?> configInterface, Method method) { return new ConfigSetter(configInterface, method); } };
/** * Create a new ConfigAccessorMethod instance. * * @param configInterface The configuration interface. * @param method The method. */ protected ConfigAccessorMethod(Class<?> configInterface, Method method) { property = ConfigUtil.getPropertyName(configInterface, method); }
/** * @return Directory with fonts for generate PDF from HTML */ @Property("reporting.fontsDir") String getPdfFontsDirectory();
/** * @return user that is used to connect to LDAP server. * For instance: cn=System User,ou=Employees,dc=mycompany,dc=com */ @Property("cuba.rest.ldap.user") String getLdapUser();
/** * @return password that is used to connect to LDAP server */ @Property("cuba.rest.ldap.password") String getLdapPassword();
/** * @return trusted password of middleware */ @Property("cuba.trustedClientPassword") String getTrustedClientPassword();
/** * @return Data directory. Place persistent app-specific data files here. * Must not end with "/" */ @Property("cuba.dataDir") String getDataDir();