springpython.context
index
/home/gturnquist/spring-python-1.1.x/src/springpython/context/__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
       
scope

 
Classes
       
__builtin__.object
ApplicationContextAware
ObjectNameAutoProxyCreator(ApplicationContextAware, ObjectPostProcessor)
DisposableObject
InitializingObject
ObjectPostProcessor
springpython.container.ObjectContainer(__builtin__.object)
ApplicationContext

 
class ApplicationContext(springpython.container.ObjectContainer)
    ApplicationContext IS a ObjectContainer. It also has the ability to define the lifecycle of
objects.
 
 
Method resolution order:
ApplicationContext
springpython.container.ObjectContainer
__builtin__.object

Methods defined here:
__init__(self, config=None)
get_objects_by_type(self, type_, include_type=True)
Returns all objects which are instances of a given type.
If include_type is False then only instances of the type's subclasses
will be returned.
shutdown_hook(self)

Methods inherited from springpython.container.ObjectContainer:
get_object(self, name, ignore_abstract=False)
This function attempts to find the object in the singleton cache. If not found, 
delegates to _create_object in order to hunt for the definition, and request a
object factory to generate one.

Data descriptors inherited from springpython.container.ObjectContainer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ApplicationContextAware(__builtin__.object)
     Methods defined here:
__init__(self)
set_app_context(self, app_context)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class DisposableObject(__builtin__.object)
    This allows definition of a method which is invoked when the 
container's shutting down to release the resources held by an object.
 
  Methods defined here:
destroy(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class InitializingObject(__builtin__.object)
    This allows definition of a method which is invoked by the container after an object has had all properties set.
 
  Methods defined here:
after_properties_set(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ObjectNameAutoProxyCreator(ApplicationContextAware, ObjectPostProcessor)
    This object will iterate over a list of objects, and automatically apply
a list of advisors to every callable method. This is useful when default advice
needs to be applied widely with minimal configuration.
 
 
Method resolution order:
ObjectNameAutoProxyCreator
ApplicationContextAware
ObjectPostProcessor
__builtin__.object

Methods defined here:
__init__(self, objectNames=[], interceptorNames=[])

Methods inherited from ApplicationContextAware:
set_app_context(self, app_context)

Data descriptors inherited from ApplicationContextAware:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from ObjectPostProcessor:
post_process_after_initialization(self, obj, obj_name)
post_process_before_initialization(self, obj, obj_name)

 
class ObjectPostProcessor(__builtin__.object)
     Methods defined here:
post_process_after_initialization(self, obj, obj_name)
post_process_before_initialization(self, obj, obj_name)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)