本文整理汇总了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);
}
}
开发者ID:andyphillips404,项目名称:awplab-core,代码行数:10,代码来源:VolatileSchedulerProvider.java
示例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;
}
开发者ID:andyphillips404,项目名称:awplab-core,代码行数:8,代码来源:VolatileSchedulerProvider.java
示例3: setAlias
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = PROPERTY_ALIAS)
@Override
protected void setAlias(String alias) {
super.setAlias(alias);
}
开发者ID:andyphillips404,项目名称:awplab-core,代码行数:6,代码来源:SwaggerRestProvider.java
示例4: setEnableCors
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = PROPERTY_CORS)
private void setEnableCors(boolean coors) {
enableCors = false;
RestManager.getProvider().reloadAliases();
}
开发者ID:andyphillips404,项目名称:awplab-core,代码行数:6,代码来源:SwaggerRestProvider.java
示例5: StandardIntrospectionService
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
public StandardIntrospectionService(@Property(name = "baseUrl") final String baseUrl) {
this.baseUrl = baseUrl;
}
开发者ID:sauthieg,项目名称:wisdom-oauth2-protection,代码行数:4,代码来源:StandardIntrospectionService.java
示例6: setBearerToken
import org.apache.felix.ipojo.annotations.Property; //导入依赖的package包/类
@Property(name = "bearerToken")
public void setBearerToken(final String bearerToken) {
this.bearerToken = bearerToken;
}
开发者ID:sauthieg,项目名称:wisdom-oauth2-protection,代码行数:5,代码来源:StandardIntrospectionService.java
示例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;
}
开发者ID:sauthieg,项目名称:wisdom-oauth2-protection,代码行数:6,代码来源:OpenAmIntrospectionService.java
示例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);
}
开发者ID:hnunner,项目名称:osgi-servlet,代码行数:12,代码来源:IpojoServletConfigured.java
示例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);
}
开发者ID:hnunner,项目名称:osgi-servlet,代码行数:12,代码来源:IpojoServletConfigured.java
注:本文中的org.apache.felix.ipojo.annotations.Property类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论