springpython.config
index
/home/springpython/se-springpython-py/tags/springpython-1.0.0.GA/src/springpython/config/__init__.py

Copyright 2006-2008 SpringSource (http://springsource.com), All Rights Reserved
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 
    http://www.apache.org/licenses/LICENSE-2.0
 
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

 
Package Contents
       
decorator

 
Classes
       
__builtin__.object
Config
PyContainerConfig
PythonConfig(Config, springpython.context.ApplicationContextAware)
SpringJavaConfig
XMLConfig
InnerObjectDef
ObjectDef
ReferenceDef
ValueDef
DictDef
FrozenSetDef
ListDef
SetDef
TupleDef
exceptions.Exception
InvalidObjectScope

 
class Config(__builtin__.object)
    Config is an interface that defines how to read object definitions from an input source.
 
  Methods defined here:
read_object_defs(self)
Abstract method definition - should return an array of Object objects

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Config' objects>
list of weak references to the object (if defined)

 
class DictDef(ValueDef)
    Handles behavior for a dictionary-based value.
 
 
Method resolution order:
DictDef
ValueDef
__builtin__.object

Methods defined here:
__init__(self, name, value)

Methods inherited from ValueDef:
__str__(self)
get_value(self, container)
scan_value(self, container, value)
set_value(self, obj, container)

Data and other attributes inherited from ValueDef:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ValueDef' objects>
list of weak references to the object (if defined)

 
class FrozenSetDef(ValueDef)
    Handles behavior for a frozen-set-based value.
 
 
Method resolution order:
FrozenSetDef
ValueDef
__builtin__.object

Methods defined here:
__init__(self, name, value)

Methods inherited from ValueDef:
__str__(self)
get_value(self, container)
scan_value(self, container, value)
set_value(self, obj, container)

Data and other attributes inherited from ValueDef:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ValueDef' objects>
list of weak references to the object (if defined)

 
class InnerObjectDef(__builtin__.object)
    This class represents an inner object. It is optional whether or not the object
has its own name.
 
  Methods defined here:
__init__(self, name, inner_comp)
__str__(self)
get_value(self, container)
prefetch(self, container)
set_value(self, obj, container)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'InnerObjectDef' objects>
list of weak references to the object (if defined)

 
class InvalidObjectScope(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class ListDef(ValueDef)
    Handles behavior for a list-based value.
 
 
Method resolution order:
ListDef
ValueDef
__builtin__.object

Methods defined here:
__init__(self, name, value)

Methods inherited from ValueDef:
__str__(self)
get_value(self, container)
scan_value(self, container, value)
set_value(self, obj, container)

Data and other attributes inherited from ValueDef:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ValueDef' objects>
list of weak references to the object (if defined)

 
class ObjectDef(__builtin__.object)
    ObjectDef is a format-neutral way of storing object definition information. It includes
a handle for the actual ObjectFactory that should be used to utilize this information when
creating an instance of a object.
 
  Methods defined here:
__init__(self, id, props=None, factory=None, scope='scope.SINGLETON', lazy_init=False)
__str__(self)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ObjectDef' objects>
list of weak references to the object (if defined)

 
class PyContainerConfig(Config)
    PyContainerConfig supports the legacy XML dialect (PyContainer) of reading object definitions.
 
 
Method resolution order:
PyContainerConfig
Config
__builtin__.object

Methods defined here:
__init__(self, config_location)
read_object_defs(self)

Data and other attributes inherited from Config:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Config' objects>
list of weak references to the object (if defined)

 
class PythonConfig(Config, springpython.context.ApplicationContextAware)
    PythonConfig supports using pure python code to define objects.
 
 
Method resolution order:
PythonConfig
Config
springpython.context.ApplicationContextAware
__builtin__.object

Methods defined here:
__init__(self)
read_object_defs(self)
set_app_context(self, app_context)

Data and other attributes inherited from Config:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Config' objects>
list of weak references to the object (if defined)

 
class ReferenceDef(__builtin__.object)
    This class represents a definition that is referencing another object.
 
  Methods defined here:
__init__(self, name, ref)
__str__(self)
get_value(self, container)
prefetch(self, container)
set_value(self, obj, container)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ReferenceDef' objects>
list of weak references to the object (if defined)

 
class SetDef(ValueDef)
    Handles behavior for a set-based value.
 
 
Method resolution order:
SetDef
ValueDef
__builtin__.object

Methods defined here:
__init__(self, name, value)

Methods inherited from ValueDef:
__str__(self)
get_value(self, container)
scan_value(self, container, value)
set_value(self, obj, container)

Data and other attributes inherited from ValueDef:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ValueDef' objects>
list of weak references to the object (if defined)

 
class SpringJavaConfig(Config)
    SpringJavaConfig supports current Spring Java format of XML bean definitions.
 
 
Method resolution order:
SpringJavaConfig
Config
__builtin__.object

Methods defined here:
__init__(self, config_location)
read_object_defs(self)

Data and other attributes inherited from Config:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Config' objects>
list of weak references to the object (if defined)

 
class TupleDef(ValueDef)
    Handles behavior for a tuple-based value.
 
 
Method resolution order:
TupleDef
ValueDef
__builtin__.object

Methods defined here:
__init__(self, name, value)

Methods inherited from ValueDef:
__str__(self)
get_value(self, container)
scan_value(self, container, value)
set_value(self, obj, container)

Data and other attributes inherited from ValueDef:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ValueDef' objects>
list of weak references to the object (if defined)

 
class ValueDef(__builtin__.object)
    This class represents a property that holds a value. The value can be simple value, or
it can be a complex container which internally holds references, inner objects, or
any other type.
 
  Methods defined here:
__init__(self, name, value)
__str__(self)
get_value(self, container)
scan_value(self, container, value)
set_value(self, obj, container)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'ValueDef' objects>
list of weak references to the object (if defined)

 
class XMLConfig(Config)
    SpringPythonConfig supports current Spring Python format of XML object definitions.
 
 
Method resolution order:
XMLConfig
Config
__builtin__.object

Methods defined here:
__init__(self, config_location)
read_object_defs(self)

Data and other attributes inherited from Config:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Config' objects>
list of weak references to the object (if defined)

 
Functions
       
Object(theScope='scope.SINGLETON')
This function is a wrapper around the real decorator. It decides, based on scope
and lazy-init, which decorator to return.
Default scope is SINGLETON.
method = set_app_context(self, app_context) unbound PythonConfig method

 
Data
        name = 'set_app_context'