org.openpermis.editor.policy.configuration
Interface Configuration

All Superinterfaces:
ComponentFactory
All Known Implementing Classes:
BasicConfiguration, PolicyViewConfiguration

public interface Configuration
extends ComponentFactory

Configuration object that provides component implementations and their configurations.

Since:
0.9.0

Method Summary
 void addFactoryAdapter(org.picocontainer.ComponentAdapter<?> componentAdapter)
          Adds a component adapter to the factory container.
 void addFactoryComponent(Object implOrInstance)
          Adds a component implementation or instance to the factory container.
 void addFactoryComponent(Object componentKey, Object implOrInstance)
          Adds a component implementation or instance to the factory container with a key.
 ApplicationView createApplicationView()
          Returns a new instance of the application view configured.
 List<Class<?>> getOrder(String section)
          Returns the order in which implementation classes of the specified section have been listed.
 Object getSetting(Object type, String key)
          Returns the setting value for the specified type and key.
 
Methods inherited from interface org.openpermis.editor.policy.configuration.ComponentFactory
canCreate, create, create, instances
 

Method Detail

addFactoryComponent

void addFactoryComponent(Object implOrInstance)
Adds a component implementation or instance to the factory container.

Implementation classes will be added without caching.

Parameters:
implOrInstance - the component implementation or instance add.
Since:
0.9.0

addFactoryComponent

void addFactoryComponent(Object componentKey,
                         Object implOrInstance)
Adds a component implementation or instance to the factory container with a key.

Implementation classes will be added without caching.

Parameters:
componentKey - the component key to use.
implOrInstance - the component implementation or instance add.
Since:
0.9.0

addFactoryAdapter

void addFactoryAdapter(org.picocontainer.ComponentAdapter<?> componentAdapter)
Adds a component adapter to the factory container.

Parameters:
componentAdapter - the component adapter to add.
Since:
0.9.0

getOrder

List<Class<?>> getOrder(String section)
Returns the order in which implementation classes of the specified section have been listed.

Parameters:
section - the section as it appears in the configuration file.
Returns:
the order requested, may be null for inexistent sections.
Since:
0.9.0

createApplicationView

ApplicationView createApplicationView()
Returns a new instance of the application view configured.

Returns:
the application view instance requested.
Since:
0.9.0

getSetting

Object getSetting(Object type,
                  String key)
Returns the setting value for the specified type and key.

Parameters:
type - the class for which to retrieve the value of key.
key - the key for which to retrieve the value.
Returns:
the value requested, null if undefined.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG