| | |
| | | */ |
| | | public final class ManagedObjectDefinitionResource { |
| | | |
| | | // Mapping from definition to property tables. |
| | | /** Mapping from definition to property tables. */ |
| | | private final Map<AbstractManagedObjectDefinition<?, ?>, Properties> properties; |
| | | |
| | | // The resource name prefix. |
| | | /** The resource name prefix. */ |
| | | private final String prefix; |
| | | |
| | | /** |
| | |
| | | return new ManagedObjectDefinitionResource("config.profiles." + profile); |
| | | } |
| | | |
| | | // Private constructor. |
| | | /** Private constructor. */ |
| | | private ManagedObjectDefinitionResource(String prefix) { |
| | | this.properties = new HashMap<AbstractManagedObjectDefinition<?, ?>, Properties>(); |
| | | this.prefix = prefix; |
| | |
| | | return result; |
| | | } |
| | | |
| | | // Retrieve the properties table associated with a managed object, |
| | | // lazily loading it if necessary. |
| | | /** |
| | | * Retrieve the properties table associated with a managed object, |
| | | * lazily loading it if necessary. |
| | | */ |
| | | private synchronized Properties getProperties(AbstractManagedObjectDefinition<?, ?> d) { |
| | | Properties p = properties.get(d); |
| | | |