public interface BrooklynCatalog
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_VERSION |
Modifier and Type | Method and Description |
---|---|
void |
addItem(CatalogItem<?,?> item)
Deprecated.
since 0.7.0 Construct catalogs with yaml (referencing OSGi bundles) instead
|
CatalogItem<?,?> |
addItem(java.lang.Class<?> clazz)
Deprecated.
since 0.7.0 Construct catalogs with OSGi bundles instead
|
CatalogItem<?,?> |
addItem(java.lang.String yaml)
Deprecated.
since 0.7.0 use
addItems(String, boolean) |
CatalogItem<?,?> |
addItem(java.lang.String yaml,
boolean forceUpdate)
Deprecated.
since 0.7.0 use
addItems(String, boolean) |
java.lang.Iterable<? extends CatalogItem<?,?>> |
addItems(java.lang.String yaml)
Adds items (represented in yaml) to the catalog.
|
java.lang.Iterable<? extends CatalogItem<?,?>> |
addItems(java.lang.String yaml,
boolean forceUpdate)
Adds items (represented in yaml) to the catalog.
|
<T,SpecT> SpecT |
createSpec(CatalogItem<T,SpecT> item)
creates a spec for the given catalog item, throwing exceptions if any problems
|
void |
deleteCatalogItem(java.lang.String symbolicName)
Deprecated.
since 0.7.0 use
deleteCatalogItem(String, String) |
void |
deleteCatalogItem(java.lang.String symbolicName,
java.lang.String version) |
<T,SpecT> CatalogItem<T,SpecT> |
getCatalogItem(java.lang.Class<T> type,
java.lang.String symbolicName)
Deprecated.
since 0.7.0 use
#getCatalogItem(Class |
<T,SpecT> CatalogItem<T,SpecT> |
getCatalogItem(java.lang.Class<T> type,
java.lang.String symbolicName,
java.lang.String version)
variant of
getCatalogItem(String, String) which checks (and casts) type for convenience
(returns null if type does not match) |
CatalogItem<?,?> |
getCatalogItem(java.lang.String symbolicName)
Deprecated.
since 0.7.0 use
getCatalogItem(String, String) ;
or see also CatalogUtils getCatalogItemOptionalVersion |
CatalogItem<?,?> |
getCatalogItem(java.lang.String symbolicName,
java.lang.String version) |
CatalogItem<?,?> |
getCatalogItemForType(java.lang.String typeName)
Deprecated.
since 0.7.0 use
createSpec(CatalogItem) |
<T,SpecT> java.lang.Iterable<CatalogItem<T,SpecT>> |
getCatalogItems() |
<T,SpecT> java.lang.Iterable<CatalogItem<T,SpecT>> |
getCatalogItems(com.google.common.base.Predicate<? super CatalogItem<T,SpecT>> filter)
convenience for filtering items in the catalog; see CatalogPredicates for useful filters
|
java.lang.ClassLoader |
getRootClassLoader() |
<T,SpecT> java.lang.Class<? extends T> |
loadClass(CatalogItem<T,SpecT> item)
Deprecated.
since 0.7.0 use
createSpec(CatalogItem) |
<T> java.lang.Class<? extends T> |
loadClassByType(java.lang.String typeName,
java.lang.Class<T> typeClass)
Deprecated.
since 0.7.0 use
createSpec(CatalogItem) |
void |
persist(CatalogItem<?,?> catalogItem)
persists the catalog item to the object store, if persistence is enabled
|
void |
reset(java.util.Collection<CatalogItem<?,?>> entries) |
static final java.lang.String DEFAULT_VERSION
@Deprecated CatalogItem<?,?> getCatalogItem(java.lang.String symbolicName)
getCatalogItem(String, String)
;
or see also CatalogUtils getCatalogItemOptionalVersionsymbolicName
, or null if not found.CatalogItem<?,?> getCatalogItem(java.lang.String symbolicName, java.lang.String version)
symbolicName
, or null if not found.@Deprecated void deleteCatalogItem(java.lang.String symbolicName)
deleteCatalogItem(String, String)
java.util.NoSuchElementException
- if not foundvoid deleteCatalogItem(java.lang.String symbolicName, java.lang.String version)
java.util.NoSuchElementException
- if not found@Deprecated <T,SpecT> CatalogItem<T,SpecT> getCatalogItem(java.lang.Class<T> type, java.lang.String symbolicName)
#getCatalogItem(Class, String, String)
getCatalogItem(String, String)
which checks (and casts) type for convenience
(returns null if type does not match)<T,SpecT> CatalogItem<T,SpecT> getCatalogItem(java.lang.Class<T> type, java.lang.String symbolicName, java.lang.String version)
getCatalogItem(String, String)
which checks (and casts) type for convenience
(returns null if type does not match)<T,SpecT> java.lang.Iterable<CatalogItem<T,SpecT>> getCatalogItems()
<T,SpecT> java.lang.Iterable<CatalogItem<T,SpecT>> getCatalogItems(com.google.common.base.Predicate<? super CatalogItem<T,SpecT>> filter)
void persist(CatalogItem<?,?> catalogItem)
java.lang.ClassLoader getRootClassLoader()
<T,SpecT> SpecT createSpec(CatalogItem<T,SpecT> item)
@Deprecated <T,SpecT> java.lang.Class<? extends T> loadClass(CatalogItem<T,SpecT> item)
createSpec(CatalogItem)
@Deprecated <T> java.lang.Class<? extends T> loadClassByType(java.lang.String typeName, java.lang.Class<T> typeClass)
createSpec(CatalogItem)
CatalogItem<?,?> getCatalogItemForType(java.lang.String typeName)
createSpec(CatalogItem)
@Deprecated CatalogItem<?,?> addItem(java.lang.String yaml)
addItems(String, boolean)
java.lang.IllegalArgumentException
- if the yaml was invalid@Deprecated CatalogItem<?,?> addItem(java.lang.String yaml, boolean forceUpdate)
addItems(String, boolean)
forceUpdate
- If true allows catalog update even when an
item exists with the same symbolicName and versionjava.lang.IllegalArgumentException
- if the yaml was invalidjava.lang.Iterable<? extends CatalogItem<?,?>> addItems(java.lang.String yaml)
java.lang.IllegalArgumentException
- if the yaml was invalidjava.lang.Iterable<? extends CatalogItem<?,?>> addItems(java.lang.String yaml, boolean forceUpdate)
forceUpdate
- If true allows catalog update even when an
item exists with the same symbolicName and versionjava.lang.IllegalArgumentException
- if the yaml was invalid@Deprecated void addItem(CatalogItem<?,?> item)
@Deprecated CatalogItem<?,?> addItem(java.lang.Class<?> clazz)
Note that the class will be available for this session only, although the record of the item will appear in the catalog DTO if exported, so it is recommended to edit the 'manual' catalog DTO if using it to generate a catalog, either adding the appropriate classpath URL or removing this entry.
void reset(java.util.Collection<CatalogItem<?,?>> entries)