com.amazon.carbonado.capability
Interface StorableInfoCapability

All Superinterfaces:
Capability

public interface StorableInfoCapability
extends Capability

Capability that returns information about known storable types in a repository.

Author:
Brian S O'Neill

Method Summary
 String[] getUserStorableTypeNames()
          Returns an array of storable type class names for user-level storables known to the repository.
 boolean isPropertySupported(Class<Storable> type, String name)
          Returns true if the given property exists and is supported.
 boolean isSupported(Class<Storable> type)
          Returns true if the given storable type is supported.
 

Method Detail

getUserStorableTypeNames

String[] getUserStorableTypeNames()
                                  throws RepositoryException
Returns an array of storable type class names for user-level storables known to the repository. The array might be empty, but it is never null. The array is a copy, and so it may be safely modified.

This method returns class names instead of class instances because the repository may not be able to load the classes.

Throws:
RepositoryException

isSupported

boolean isSupported(Class<Storable> type)
Returns true if the given storable type is supported.

Parameters:
type - storable type to examine

isPropertySupported

boolean isPropertySupported(Class<Storable> type,
                            String name)
Returns true if the given property exists and is supported.

Parameters:
type - storable type to examine
name - name of property to examine


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.