Groovy Documentation

griffon.plugins.weld.util
[Java] Class NonContextual.Instance

java.lang.Object
  griffon.plugins.weld.util.NonContextual.Instance

public static class NonContextual.Instance

Represents a non-contextual instance

Parameters:
Authors:
pmuir


Field Summary
private CreationalContext ctx

private boolean disposed

private InjectionTarget injectionTarget

private Object instance

 
Constructor Summary
private NonContextual.Instance(BeanManager beanManager, InjectionTarget injectionTarget)

private NonContextual.Instance(BeanManager beanManager, InjectionTarget injectionTarget, Object instance)

 
Method Summary
Instance dispose()

Dispose of the instance, doing any necessary cleanup

Object get()

Get the instance

Instance inject()

Inject the instance

Instance postConstruct()

Call the @PostConstruct callback

Instance preDestroy()

Call the @PreDestroy callback

Instance produce()

Create the instance

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

ctx

private final CreationalContext ctx


disposed

private boolean disposed


injectionTarget

private final InjectionTarget injectionTarget


instance

private Object instance


 
Constructor Detail

NonContextual.Instance

private NonContextual.Instance(BeanManager beanManager, InjectionTarget injectionTarget)


NonContextual.Instance

private NonContextual.Instance(BeanManager beanManager, InjectionTarget injectionTarget, Object instance)


 
Method Detail

dispose

public Instance dispose()
Dispose of the instance, doing any necessary cleanup


get

public Object get()
Get the instance
Returns:


inject

public Instance inject()
Inject the instance
Returns:


postConstruct

public Instance postConstruct()
Call the
PostConstruct:
callback
Returns:


preDestroy

public Instance preDestroy()
Call the
PreDestroy:
callback
Returns:


produce

public Instance produce()
Create the instance
Returns:


 

Groovy Documentation