本文整理了Java中org.oasisopen.sca.annotation.Property
类的一些代码示例,展示了Property
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property
类的具体详情如下:
包路径:org.oasisopen.sca.annotation.Property
类名称:Property
暂无
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-zeromq
/**
* Sets the timeout in milliseconds for polling operations.
*
* @param timeout the timeout in milliseconds for polling operations
*/
@Property(required = false)
public void setPollTimeout(long timeout) {
this.pollTimeout = timeout * 1000; // convert milliseconds to microseconds
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
@Override
protected String getName(Property annotation) {
return annotation.name();
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
@Override
protected boolean getRequired(Property annotation) {
return annotation.required();
}
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-ftp-server
/**
* Sets the maximum passive port.
*
* @param maxPort Maximum passive port.
*/
@Property(required = false)
public void setMaxPort(int maxPort) {
this.maxPort = maxPort;
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
public PropertyInjectable(Property propertyAnnotation,
ParamType paramType,
Class<?> type,
Type genericType,
Annotation[] annotations,
Member member) {
super(paramType, type, genericType, annotations, member);
this.name = getPropertyName(propertyAnnotation.name(), member);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-ftp
/**
* Optionally configures a timeout setting for openning a socket connection. The default wait is 2 minutes.
*
* @param connectTimeout the timeout in milliseconds
*/
@Property(required = false)
public void setConnectTimeout(int connectTimeout) {
this.connectTimeout = connectTimeout;
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-wink
public PropertyInjectable(Property propertyAnnotation,
ParamType paramType,
Class<?> type,
Type genericType,
Annotation[] annotations,
Member member) {
super(paramType, type, genericType, annotations, member);
this.name = getPropertyName(propertyAnnotation.name(), member);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-ftp
/**
* Optionally configures a timeout setting for socket connections from the client to a server. The default is 30 minutes.
*
* @param socketTimeout the timeout in milliseconds
*/
@Property(required = false)
public void setSocketTimeout(int socketTimeout) {
this.socketTimeout = socketTimeout;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-ftp-server
/**
* Sets the FTP command port.
*
* @param commandPort Command port.
*/
@Property(required = false)
public void setCommandPort(int commandPort) {
this.commandPort = commandPort;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-ftp-server
/**
* Sets the optional timeout in milliseconds for sockets that are idle.
*
* @param timeout timeout in milliseconds.
*/
@Property(required = false)
public void setIdleTimeout(int timeout) {
this.idleTimeout = timeout / 1000; // convert to seconds used by Mina
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric
/**
* Optionally used to override default non-transactional deployment behavior in the single-VM runtime.
*
* @param transactional used to override default non-transactional deployment behavior in the single-VM runtime
*/
@Property(required = false)
public void setTransactional(boolean transactional) {
this.transactional = transactional;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-federation-jgroups
/**
* Property to configure whether the runtime should attempt an update by querying a zone leader or the controller. In some topologies, the runtime may pull
* deployment information from a persistent store, which eliminates the need to update via a peer or the controller.
*
* @param synchronize true if the runtime should attempt an update (the default)
*/
@Property(required = false)
public void setSynchronize(boolean synchronize) {
this.synchronize = synchronize;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-ftp-server
/**
* Sets the users and passwords as a map.
*
* @param users Map of users to passwords.
*/
@Property(required = false)
public void setUsers(Map<String, String> users) {
this.users = users;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-zeromq
/**
* Sets this host to bind the publisher to.
*
* @param host the host
*/
@Property(required = false)
public void setHost(String host) {
this.hostAddress = host;
}
代码示例来源:origin: org.fabric3/fabric3-binding-ftp
/**
* Optionally configures a timeout setting for openning a socket connection. The default wait is 2 minutes.
*
* @param connectTimeout the timeout in milliseconds
*/
@Property(required = false)
public void setConnectTimeout(int connectTimeout) {
this.connectTimeout = connectTimeout;
}
代码示例来源:origin: org.fabric3/fabric3-binding-ftp
/**
* Optionally configures a timeout setting for socket connections from the client to a server. The default is 30 minutes.
*
* @param socketTimeout the timeout in milliseconds
*/
@Property(required = false)
public void setSocketTimeout(int socketTimeout) {
this.socketTimeout = socketTimeout;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-ftp-server
/**
* Sets the address the server should bind to. This is used for multi-homed machines.
*
* @param listenAddress the address to bind to
*/
@Property(required = false)
public void setListenAddress(String listenAddress) {
this.listenAddress = listenAddress;
}
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric
@Property(required = false)
public void setHost(String host){
configuredHost = host;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric
@Property(required = false)
public void setTrustStoreType(String trustStoreType) {
this.trustStoreType = trustStoreType;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-jetty
@Property(required = false)
public void setLogLatency(boolean logLatency) {
this.logLatency = logLatency;
}
内容来源于网络,如有侵权,请联系作者删除!