ARTEMIS-3529 Moving addItem from AMQP and Core into upper class
This commit is contained in:
parent
a833d95c1f
commit
6bb4aa7a10
|
@ -1336,7 +1336,6 @@ public class CoreMessage extends RefCountMessage implements ICoreMessage {
|
||||||
protected void init() throws OpenDataException {
|
protected void init() throws OpenDataException {
|
||||||
super.init();
|
super.init();
|
||||||
body = new ArrayType(SimpleType.BYTE, true);
|
body = new ArrayType(SimpleType.BYTE, true);
|
||||||
addItem(CompositeDataConstants.TYPE, CompositeDataConstants.TYPE_DESCRIPTION, SimpleType.BYTE);
|
|
||||||
addItem(CompositeDataConstants.BODY, CompositeDataConstants.BODY_DESCRIPTION, body);
|
addItem(CompositeDataConstants.BODY, CompositeDataConstants.BODY_DESCRIPTION, body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1360,7 +1359,6 @@ public class CoreMessage extends RefCountMessage implements ICoreMessage {
|
||||||
@Override
|
@Override
|
||||||
protected void init() throws OpenDataException {
|
protected void init() throws OpenDataException {
|
||||||
super.init();
|
super.init();
|
||||||
addItem(CompositeDataConstants.TYPE, CompositeDataConstants.TYPE_DESCRIPTION, SimpleType.BYTE);
|
|
||||||
addItem(CompositeDataConstants.TEXT_BODY, CompositeDataConstants.TEXT_BODY, SimpleType.STRING);
|
addItem(CompositeDataConstants.TEXT_BODY, CompositeDataConstants.TEXT_BODY, SimpleType.STRING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class MessageOpenTypeFactory<M extends Message> {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void init() throws OpenDataException {
|
protected void init() throws OpenDataException {
|
||||||
|
addItem(CompositeDataConstants.TYPE, CompositeDataConstants.TYPE_DESCRIPTION, SimpleType.BYTE);
|
||||||
addItem(CompositeDataConstants.ADDRESS, CompositeDataConstants.ADDRESS_DESCRIPTION, SimpleType.STRING);
|
addItem(CompositeDataConstants.ADDRESS, CompositeDataConstants.ADDRESS_DESCRIPTION, SimpleType.STRING);
|
||||||
addItem(CompositeDataConstants.MESSAGE_ID, CompositeDataConstants.MESSAGE_ID_DESCRIPTION, SimpleType.STRING);
|
addItem(CompositeDataConstants.MESSAGE_ID, CompositeDataConstants.MESSAGE_ID_DESCRIPTION, SimpleType.STRING);
|
||||||
addItem(CompositeDataConstants.USER_ID, CompositeDataConstants.USER_ID_DESCRIPTION, SimpleType.STRING);
|
addItem(CompositeDataConstants.USER_ID, CompositeDataConstants.USER_ID_DESCRIPTION, SimpleType.STRING);
|
||||||
|
|
|
@ -1803,7 +1803,6 @@ public abstract class AMQPMessage extends RefCountMessage implements org.apache.
|
||||||
protected void init() throws OpenDataException {
|
protected void init() throws OpenDataException {
|
||||||
super.init();
|
super.init();
|
||||||
addItem(CompositeDataConstants.TEXT_BODY, CompositeDataConstants.TEXT_BODY, SimpleType.STRING);
|
addItem(CompositeDataConstants.TEXT_BODY, CompositeDataConstants.TEXT_BODY, SimpleType.STRING);
|
||||||
addItem(CompositeDataConstants.TYPE, CompositeDataConstants.TYPE_DESCRIPTION, SimpleType.BYTE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue