org.picocontainer
Class PicoBuilder
java.lang.Object
org.picocontainer.PicoBuilder
public class PicoBuilder
- extends Object
Helps assembles the myriad items available to a picocontainer.
Simple Example:
MutablePicoContainer mpc = new PicoBuilder()
.withCaching()
.withLifecycle()
.build();
- Author:
- Paul Hammant
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PicoBuilder
public PicoBuilder(PicoContainer parentContainer,
InjectionFactory injectionType)
PicoBuilder
public PicoBuilder(PicoContainer parentContainer)
PicoBuilder
public PicoBuilder(InjectionFactory injectionType)
PicoBuilder
public PicoBuilder()
withLifecycle
public PicoBuilder withLifecycle()
withReflectionLifecycle
public PicoBuilder withReflectionLifecycle()
withLifecycle
public PicoBuilder withLifecycle(Class<? extends LifecycleStrategy> lifecycleStrategyClass)
withJavaEE5Lifecycle
public PicoBuilder withJavaEE5Lifecycle()
withLifecycle
public PicoBuilder withLifecycle(LifecycleStrategy lifecycleStrategy)
withConsoleMonitor
public PicoBuilder withConsoleMonitor()
withMonitor
public PicoBuilder withMonitor(Class<? extends ComponentMonitor> cmClass)
build
public MutablePicoContainer build()
withHiddenImplementations
public PicoBuilder withHiddenImplementations()
withSetterInjection
public PicoBuilder withSetterInjection()
withAnnotatedMethodInjection
public PicoBuilder withAnnotatedMethodInjection()
withAnnotatedFieldInjection
public PicoBuilder withAnnotatedFieldInjection()
withTypedFieldInjection
public PicoBuilder withTypedFieldInjection()
withConstructorInjection
public PicoBuilder withConstructorInjection()
withNamedMethodInjection
public PicoBuilder withNamedMethodInjection()
withNamedFieldInjection
public PicoBuilder withNamedFieldInjection()
withCaching
public PicoBuilder withCaching()
withComponentFactory
public PicoBuilder withComponentFactory(ComponentFactory componentFactory)
withSynchronizing
public PicoBuilder withSynchronizing()
withLocking
public PicoBuilder withLocking()
withBehaviors
public PicoBuilder withBehaviors(BehaviorFactory... factories)
implementedBy
public PicoBuilder implementedBy(Class<? extends MutablePicoContainer> containerClass)
withMonitor
public PicoBuilder withMonitor(ComponentMonitor componentMonitor)
withComponentFactory
public PicoBuilder withComponentFactory(Class<? extends ComponentFactory> componentFactoryClass)
withCustomContainerComponent
public PicoBuilder withCustomContainerComponent(Object containerDependency)
withPropertyApplier
public PicoBuilder withPropertyApplier()
withAutomatic
public PicoBuilder withAutomatic()
withMethodInjection
public PicoBuilder withMethodInjection()
addChildToParent
public PicoBuilder addChildToParent()
Copyright © 2003-2010 Codehaus. All Rights Reserved.