mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-08 12:01:09 +01:00
Add (IQ|PacketExtension)IntrospectionProvider
This simplifies code as there is no longer a distinction between "normal" providers and introspection providers in ProviderManager necessary. It's also easier to get an idea where introspection is used for parsing.
This commit is contained in:
parent
00f5008794
commit
77f0fdc156
11 changed files with 284 additions and 212 deletions
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
*
|
||||
* Copyright © 2014 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jivesoftware.smackx.time.provider;
|
||||
|
||||
import org.jivesoftware.smack.provider.IntrospectionProvider.IQIntrospectionProvider;
|
||||
import org.jivesoftware.smackx.time.packet.Time;
|
||||
|
||||
public class TimeProvider extends IQIntrospectionProvider<Time> {
|
||||
|
||||
public TimeProvider() {
|
||||
super(Time.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
<iqProvider>
|
||||
<elementName>time</elementName>
|
||||
<namespace>urn:xmpp:time</namespace>
|
||||
<className>org.jivesoftware.smackx.time.packet.Time</className>
|
||||
<className>org.jivesoftware.smackx.time.provider.TimeProvider</className>
|
||||
</iqProvider>
|
||||
|
||||
<!-- Chat State -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue