T
- The model's type.public class OsgiModelSource<T> extends Object
ResourceModelFactory
provided
by a Bundle
.Constructor and Description |
---|
OsgiModelSource(io.neba.api.spi.ResourceModelFactory.ModelDefinition<T> modelDefinition,
io.neba.api.spi.ResourceModelFactory factory,
org.osgi.framework.Bundle bundle) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.osgi.framework.Bundle |
getBundle() |
long |
getBundleId() |
io.neba.api.spi.ResourceModelFactory |
getFactory() |
T |
getModel(io.neba.api.spi.ResourceModelFactory.ContentToModelMappingCallback<T> callback) |
String |
getModelName() |
Class<?> |
getModelType() |
int |
hashCode() |
String |
toString() |
public OsgiModelSource(io.neba.api.spi.ResourceModelFactory.ModelDefinition<T> modelDefinition, io.neba.api.spi.ResourceModelFactory factory, org.osgi.framework.Bundle bundle)
modelDefinition
- must not be null
.factory
- must not be null
.bundle
- must not be null
.public T getModel(io.neba.api.spi.ResourceModelFactory.ContentToModelMappingCallback<T> callback)
public Class<?> getModelType()
public long getBundleId()
public io.neba.api.spi.ResourceModelFactory getFactory()
public String getModelName()
public org.osgi.framework.Bundle getBundle()
null
.Copyright © 2024. All rights reserved.