本文整理了Java中com.esotericsoftware.kryo.Registration.<init>
方法的一些代码示例,展示了Registration.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registration.<init>
方法的具体详情如下:
包路径:com.esotericsoftware.kryo.Registration
类名称:Registration
方法名:<init>
暂无
代码示例来源:origin: stackoverflow.com
jButtonAgree.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
Registration reg = new Registration(); // **** HERE *****
LayoutManager cards = reg.getCards().getLayout();
((CardLayout) cards).show(reg.getCards(),"step1");
}
});
代码示例来源:origin: stackoverflow.com
Registration registration = new Registration();
ButtonPanel buttonPanel = new ButtonPanel();
buttonPanel.setRegistration(registration);
代码示例来源:origin: spring-projects/spring-integration
@Override
public List<Registration> getRegistrations() {
return Collections.singletonList(new Registration(File.class, this.fileSerializer, this.registrationId));
}
代码示例来源:origin: spring-projects/spring-integration
@Override
public List<Registration> getRegistrations() {
List<Registration> registrations = new ArrayList<Registration>();
if (!CollectionUtils.isEmpty(this.registeredClasses)) {
for (Map.Entry<Integer, Class<?>> entry : this.registeredClasses.entrySet()) {
registrations.add(
new Registration(entry.getValue(), kryo.getSerializer(entry.getValue()), entry.getKey()));
}
}
return registrations;
}
代码示例来源:origin: spring-projects/spring-integration
@Override
public List<Registration> getRegistrations() {
List<Registration> registrations = new ArrayList<Registration>();
if (!CollectionUtils.isEmpty(this.registeredClasses)) {
for (int i = 0; i < this.registeredClasses.size(); i++) {
registrations.add(new Registration(this.registeredClasses.get(i),
kryo.getSerializer(this.registeredClasses.get(i)), i + this.initialValue));
}
}
return registrations;
}
代码示例来源:origin: spring-projects/spring-integration
@Override
public List<Registration> getRegistrations() {
return Arrays.asList(
new Registration(MessageHeaders.class, new MessageHeadersSerializer(),
this.messageHeadersRegistrationId),
new Registration(MutableMessageHeaders.class, new MutableMessageHeadersSerializer(),
this.mutableMessageHeadersRegistrationId));
}
代码示例来源:origin: stackoverflow.com
public class Main implements EntryPoint {
....
Registration registration =new Registration();
registration.addSaveHandler(new SuperPuperHandler<MySavedObject>(){
public void onFire(MySavedObject t){
// here is saved objects in registration form
}
});
}
代码示例来源:origin: stackoverflow.com
buttonRegister.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
final String name = inputName.getText().toString();
final String mail = inputEmail.getText().toString();
final String password = inputPassword.getText()
.toString();
new Registration().execute(name,mail,password);
}
});
代码示例来源:origin: org.springframework.xd/spring-xd-codec
@Override
public List<Registration> getRegistrations() {
return Collections.singletonList(new Registration(java.io.File.class, fileSerializer, FILE_REGISTRATION_ID));
}
}
代码示例来源:origin: org.springframework.integration/spring-integration-tuple
@Override
public List<Registration> getRegistrations() {
List<Registration> registrations = new ArrayList<>(2);
registrations.add(new Registration(DefaultTuple.class, defaultTupleSerializer, TUPLE_REGISTRATION_ID));
registrations.add(new Registration(ArrayList.class, collectionSerializer, ARRAY_LIST_REGISTRATION_ID));
return registrations;
}
}
代码示例来源:origin: stackoverflow.com
@RequestMapping(method = RequestMethod.GET, value="/")
public ModelAndView initiate(){
ModelAndView objModView = new ModelAndView("/index.jsp");
objModView.addObject("registration",new Registration());
return objModView;
}
代码示例来源:origin: com.esotericsoftware.kryo/kryo
/** Registers the class using the specified ID and serializer. If the ID is already in use by the same type, the old entry is
* overwritten. If the ID is already in use by a different type, a {@link KryoException} is thrown. Registering a primitive
* also affects the corresponding primitive wrapper.
* <p>
* IDs must be the same at deserialization as they were for serialization.
* @param id Must be >= 0. Smaller IDs are serialized more efficiently. IDs 0-8 are used by default for primitive types and
* String, but these IDs can be repurposed. */
public Registration register (Class type, Serializer serializer, int id) {
if (id < 0) throw new IllegalArgumentException("id must be >= 0: " + id);
return register(new Registration(type, serializer, id));
}
代码示例来源:origin: org.springframework.integration/spring-integration-core
@Override
public List<Registration> getRegistrations() {
List<Registration> registrations = new ArrayList<Registration>();
if (!CollectionUtils.isEmpty(this.registeredClasses)) {
for (Map.Entry<Integer, Class<?>> entry : this.registeredClasses.entrySet()) {
registrations.add(
new Registration(entry.getValue(), kryo.getSerializer(entry.getValue()), entry.getKey()));
}
}
return registrations;
}
代码示例来源:origin: com.esotericsoftware/kryo-shaded
/** Registers the class using the specified ID and serializer. Providing an ID that is already in use by the same type will
* cause the old entry to be overwritten. Registering a primitive also affects the corresponding primitive wrapper.
* <p>
* IDs must be the same at deserialization as they were for serialization.
* @param id Must be >= 0. Smaller IDs are serialized more efficiently. IDs 0-9 are used by default for primitive types
* and their wrappers, String, and void, but these IDs can be repurposed. */
public Registration register (Class type, Serializer serializer, int id) {
if (id < 0) throw new IllegalArgumentException("id must be >= 0: " + id);
return register(new Registration(type, serializer, id));
}
代码示例来源:origin: com.esotericsoftware/kryo
/** Registers the class using the specified ID and serializer. Providing an ID that is already in use by the same type will
* cause the old entry to be overwritten. Registering a primitive also affects the corresponding primitive wrapper.
* <p>
* IDs must be the same at deserialization as they were for serialization.
* @param id Must be >= 0. Smaller IDs are serialized more efficiently. IDs 0-9 are used by default for primitive types
* and their wrappers, String, and void, but these IDs can be repurposed. */
public Registration register (Class type, Serializer serializer, int id) {
if (id < 0) throw new IllegalArgumentException("id must be >= 0: " + id);
return register(new Registration(type, serializer, id));
}
代码示例来源:origin: org.springframework.integration/spring-integration-core
@Override
public List<Registration> getRegistrations() {
List<Registration> registrations = new ArrayList<Registration>();
if (!CollectionUtils.isEmpty(this.registeredClasses)) {
for (int i = 0; i < this.registeredClasses.size(); i++) {
registrations.add(new Registration(this.registeredClasses.get(i),
kryo.getSerializer(this.registeredClasses.get(i)), i + this.initialValue));
}
}
return registrations;
}
代码示例来源:origin: org.springframework.xd/spring-xd-codec
@Override
public List<Registration> getRegistrations() {
List<Registration> registrations = new ArrayList<>();
if (!CollectionUtils.isEmpty(registeredClasses)) {
for (Map.Entry<Integer, Class<?>> entry : registeredClasses.entrySet()) {
registrations.add(new Registration(entry.getValue(), kryo.getSerializer(entry.getValue()), entry.getKey()));
}
}
return registrations;
}
}
代码示例来源:origin: svn2github/kryo
/** Registers the class using the specified ID and serializer. If the ID is already in use by the same type, the old entry is
* overwritten. If the ID is already in use by a different type, a {@link KryoException} is thrown. Registering a primitive
* also affects the corresponding primitive wrapper.
* <p>
* IDs must be the same at deserialization as they were for serialization.
* @param id Must be >= 0. Smaller IDs are serialized more efficiently. IDs 0-8 are used by default for primitive types and
* String, but these IDs can be repurposed. */
public Registration register (Class type, Serializer serializer, int id) {
if (id < 0) throw new IllegalArgumentException("id must be >= 0: " + id);
return register(new Registration(type, serializer, id));
}
代码示例来源:origin: org.springframework.integration/spring-integration-core
@Override
public List<Registration> getRegistrations() {
return Arrays.asList(
new Registration(MessageHeaders.class, new MessageHeadersSerializer(),
this.messageHeadersRegistrationId),
new Registration(MutableMessageHeaders.class, new MutableMessageHeadersSerializer(),
this.mutableMessageHeadersRegistrationId));
}
代码示例来源:origin: org.apache.apex/apex-engine
@Override
@SuppressWarnings("rawtypes")
public Registration registerImplicit(Class type)
{
while (getRegistration(nextAvailableRegistrationId) != null) {
nextAvailableRegistrationId++;
}
//logger.debug("adding new classid pair {} => {}", nextAvailableRegistrationId, type.getName());
pairs.add(new ClassIdPair(nextAvailableRegistrationId, type.getName()));
return register(new Registration(type, kryo.getDefaultSerializer(type), nextAvailableRegistrationId++));
}
内容来源于网络,如有侵权,请联系作者删除!