本文整理汇总了Java中org.apache.felix.ipojo.annotations.Property类的典型用法代码示例。如果您正苦于以下问题:Java Property类的具体用法?Java Property怎么用?Java Property使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Property类属于org.apache.felix.ipojo.annotations包,在下文中一共展示了Property类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setThreadPoolSize
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = PROPERTY_THREADS, mandatory = true)
public void setThreadPoolSize(int poolSize) {
if (threadPool == null) {
initialThreadPoolSize = poolSize;
}
else {
threadPool.setThreadPoolExecutorThreads(poolSize);
}
}
示例2: setThreadPriority
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = PROPERTY_PRIORITY, immutable = true)
public void setThreadPriority(int priority) {
if (isSchedulerCreated()) {
throw new RuntimeException(new OperationNotSupportedException("Cannot change scheduler thread priority after scheduler creation"));
}
threadPriority = priority;
}
示例3: setAlias
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = PROPERTY_ALIAS)
@Override
protected void setAlias(String alias) {
super.setAlias(alias);
}
示例4: setEnableCors
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = PROPERTY_CORS)
private void setEnableCors(boolean coors) {
enableCors = false;
RestManager.getProvider().reloadAliases();
}
示例5: StandardIntrospectionService
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
public StandardIntrospectionService(@Property(name = "baseUrl") final String baseUrl) {
this.baseUrl = baseUrl;
}
示例6: setBearerToken
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = "bearerToken")
public void setBearerToken(final String bearerToken) {
this.bearerToken = bearerToken;
}
示例7: OpenAmIntrospectionService
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
public OpenAmIntrospectionService(@Property(name = "baseUrl") final String baseUrl,
@Property(name = "realm", value = "/") final String realm) {
this.baseUrl = baseUrl;
this.realm = realm;
}
示例8: updateAlias
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
/**
* Update callback for servlet alias property.
*
* @param alias
* the new alias
*/
@Property(name="servletAlias")
public void updateAlias(String alias) {
this.servletAlias = alias;
LOG.info("new alias: " + alias);
}
示例9: updateGreeting
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
/**
* Update callback for greeting property.
*
* @param greeting
* the new greeting
*/
@Property(name="greeting")
public void updateGreeting(String greeting) {
this.greeting = greeting;
LOG.info("new greeting: " + greeting);
}