本文整理汇总了Java中org.springframework.metadata.Attributes类的典型用法代码示例。如果您正苦于以下问题:Java Attributes类的具体用法?Java Attributes怎么用?Java Attributes使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Attributes类属于org.springframework.metadata包,在下文中一共展示了Attributes类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setAttributes
import org.springframework.metadata.Attributes; //导入依赖的package包/类
public void setAttributes(Attributes a) {
attributes = a;
}
示例2: AttributesRulesSource
import org.springframework.metadata.Attributes; //导入依赖的package包/类
public AttributesRulesSource(Attributes attributes) {
this.attributes = attributes;
}
示例3: setAttributes
import org.springframework.metadata.Attributes; //导入依赖的package包/类
/**
* Sets the underlying implementation of attributes to use.
*
* @param attributes
* the new implementation of attributes to use.
*/
public final void setAttributes(Attributes attributes) {
MetadataCachingAttributeSource source = new MetadataCachingAttributeSource();
source.setAttributes(attributes);
setCachingAttributeSource(source);
}
示例4: setAttributes
import org.springframework.metadata.Attributes; //导入依赖的package包/类
/**
* Sets the underlying implementation of attributes to use.
*
* @param attributes
* the new implementation of attributes to use.
*/
public final void setAttributes(Attributes attributes) {
MetadataFlushingAttributeSource source = new MetadataFlushingAttributeSource();
source.setAttributes(attributes);
setFlushingAttributeSource(source);
}