org.eclipse.leshan.client.resource.LwM2mInstanceEnablerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leshan-all Show documentation
Show all versions of leshan-all Show documentation
A LWM2M client and server based on Californium (CoAP) all in one.
The newest version!
/*******************************************************************************
* Copyright (c) 2015 Sierra Wireless and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.html.
*
* Contributors:
* Sierra Wireless - initial API and implementation
*******************************************************************************/
package org.eclipse.leshan.client.resource;
import java.util.Collection;
import org.eclipse.leshan.core.model.ObjectModel;
public interface LwM2mInstanceEnablerFactory {
/**
* Create a new instance enabler.
*
* @param model of this instance (CAN NOT be null).
* @param id of this instance or NULL if the id MUST be generated by the factory.
* @param alreadyUsedIdentifier a collection of id already in used. The new instance MUST NOT use an id contained in
* this collection. It CAN be NULL if id is NOT NULL.
*
* @return the new instance enabler
*/
LwM2mInstanceEnabler create(ObjectModel model, Integer id, Collection alreadyUsedIdentifier);
}