|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stvconsultants.easygloss.AbstractGloss
com.stvconsultants.easygloss.javaee.JavaEEGloss
public class JavaEEGloss
A gloss for applying to JavaEE annotated classes.
| Constructor Summary | |
|---|---|
JavaEEGloss()
Creates a new instance of JavaEEGloss |
|
| Method Summary | ||
|---|---|---|
void |
addEJB(java.lang.Object beanImpl)
Add a default EJB to the gloss. |
|
void |
addEJB(java.lang.String name,
java.lang.Object beanImpl)
Add a specific EJB to the gloss. |
|
void |
addEJB(java.lang.String name,
java.lang.String beanName,
java.lang.Class beanInterface,
java.lang.Object beanImpl)
Add a specific EJB to the gloss. |
|
void |
addEM(javax.persistence.EntityManager em)
Add a default entity manager to the gloss. |
|
void |
addEM(java.lang.String unitName,
javax.persistence.EntityManager em)
Add an entity manager to the gloss. |
|
void |
addEMF(javax.persistence.EntityManagerFactory emf)
Add a default entity manager factory to the gloss. |
|
void |
addEMF(java.lang.String unitName,
javax.persistence.EntityManagerFactory emf)
Add an entity manager factory to the gloss. |
|
void |
addGenericEJB(java.lang.Object beanImpl)
Add a general EJB to the gloss. |
|
void |
addGenericEM(javax.persistence.EntityManager em)
Add a general entity manager to the gloss. |
|
void |
addGenericEMF(javax.persistence.EntityManagerFactory emf)
Add a general entity manager factory to the gloss. |
|
void |
addGenericResource(java.lang.Object resource)
Add a general resource to the gloss. |
|
void |
addResource(java.lang.Object resource)
Add a default resource to the gloss. |
|
void |
addResource(java.lang.String name,
java.lang.Class type,
java.lang.Object resource)
Add a specific resource to the gloss. |
|
void |
addResource(java.lang.String name,
java.lang.Object resource)
Add a specific resource to the gloss. |
|
void |
afterActivate(java.lang.Object instance)
Invoke any @PostActivate annotated callbacks in the
instance. |
|
void |
afterLoad(java.lang.Object instance)
Invoke any @PostLoad annotated callbacks in the instance. |
|
void |
afterPersist(java.lang.Object instance)
Invoke any @PostPersist annotated callbacks in the instance. |
|
void |
afterRemove(java.lang.Object instance)
Invoke any @PostRemove annotated callbacks in the instance. |
|
void |
afterUpdate(java.lang.Object instance)
Invoke any @PostUpdate annotated callbacks in the instance. |
|
void |
apply(java.lang.Object instance)
Apply the gloss to the instance. |
|
void |
applyStatic(java.lang.Class instanceClass)
Apply the gloss to the class |
|
void |
beforeDestroy(java.lang.Object instance)
Invoke any @PreDestroy annotated callbacks in the instance. |
|
void |
beforePassivate(java.lang.Object instance)
Invoke any @PrePassivate annotated callbacks in the
instance. |
|
void |
beforePersist(java.lang.Object instance)
Invoke any @PrePersist annotated callbacks in the instance. |
|
void |
beforeRemove(java.lang.Object instance)
Invoke any @PreRemove annotated callbacks in the instance. |
|
void |
beforeUpdate(java.lang.Object instance)
Invoke any @PreUpdate annotated callbacks in the instance. |
|
boolean |
equals(java.lang.Object obj)
Compare this instance with another instance. |
|
int |
hashCode()
Calculate the hashCode for this instance. |
|
|
make(java.lang.Class<T> type)
Create a new instance of T and apply the gloss to it. |
|
java.lang.String |
toString()
Generate a string representation of this gloss. |
|
| Methods inherited from class com.stvconsultants.easygloss.AbstractGloss |
|---|
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, applyStatic, filter, filter, filterGetters, filterSetters, findFields, findMethods, findSetter, invoke, invoke, invoke, matchParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaEEGloss()
| Method Detail |
|---|
public <T> T make(java.lang.Class<T> type)
T and apply the gloss to it.
Throws GlossApplicationError if anything goes wrong.
type - The class type to create.
public void addEM(javax.persistence.EntityManager em)
@PersistenceContext() EntityManager or appropriate
setter method.
em - The EntityManager to injectpublic void addGenericEM(javax.persistence.EntityManager em)
@PersistenceContext annotated
EntityManager or appropriate setter method.
em - The EntityManager to inject
public void addEM(java.lang.String unitName,
javax.persistence.EntityManager em)
@PersistenceContext(unitName="unitName")
EntityManager or appropriate setter method.
unitName - The unitName to inject for (if null => match
any)em - The EntityManager to injectpublic void addEMF(javax.persistence.EntityManagerFactory emf)
@PersistenceUnit() EntityManagerFactory or
appropriate setter method.
emf - The EntityManagerFactory to injectpublic void addGenericEMF(javax.persistence.EntityManagerFactory emf)
@PersistenceUnit annotated
EntityManagerFactory or appropriate
setter method.
emf - The EntityManagerFactory to inject
public void addEMF(java.lang.String unitName,
javax.persistence.EntityManagerFactory emf)
@PersistenceUnit(unitName="unitName")
EntityManagerFactory or appropriate
setter method.
unitName - The unitName to inject for (if null => match
any)emf - The EntityManagerFactory to injectpublic void addEJB(java.lang.Object beanImpl)
@EJB() annotated field, property or setter method with which
the beanImpl is assignment compatable.
beanImpl - The implementation to inject.public void addGenericEJB(java.lang.Object beanImpl)
@EJB() annotated field, property or setter method with
which the beanImpl is assignment compatable.
beanImpl - The implementation to inject.
public void addEJB(java.lang.String name,
java.lang.Object beanImpl)
@EJB(name="name") annotated field, property or setter
method with which the beanImpl is assignment compatable.
name - The name to match (if null => match any)beanImpl - The implementation to inject.
public void addEJB(java.lang.String name,
java.lang.String beanName,
java.lang.Class beanInterface,
java.lang.Object beanImpl)
@EJB(name="name", beanName="beanName",
beanInterface=beanInterface) annotated field, property or
setter method with which the beanImpl is assignment compatable.
name - The name to match (if null => match any)beanName - The beanName to match (if null => match any)beanInterface - The beanInterface to match (if null => match any)beanImpl - The implementation to inject.public void addResource(java.lang.Object resource)
@Resource() annotated field, property or setter method with
which the resource is assignment compatable.
resource - The resource to inject.public void addGenericResource(java.lang.Object resource)
@Resource() annotated field, property or setter method with
which the resource is assignment compatable.
resource - The resource to inject.
public void addResource(java.lang.String name,
java.lang.Object resource)
@Resource(name="name") annotated field, property or
setter method with which the resource is assignment compatable.
name - The name to match (if null => match any)resource - The resource to inject.
public void addResource(java.lang.String name,
java.lang.Class type,
java.lang.Object resource)
@Resource(name="name", type=type) annotated
field, property or setter method with which the resource is assignment
compatable.
name - The name to match (if null => match any)type - The type to match (if null => match any)resource - The resource to inject.public void apply(java.lang.Object instance)
@PostConstruct
annotated method (if present) will be called after application of the
gloss.
apply in class AbstractGlossinstance - The instance to apply the gloss to.public void applyStatic(java.lang.Class instanceClass)
applyStatic in class AbstractGlossinstanceClass - The class to which the gloss should be appliedpublic void afterActivate(java.lang.Object instance)
@PostActivate annotated callbacks in the
instance.
instance - The instance to invoke.public void afterLoad(java.lang.Object instance)
@PostLoad annotated callbacks in the instance.
instance - The instance to invoke.public void afterPersist(java.lang.Object instance)
@PostPersist annotated callbacks in the instance.
instance - The instance to invoke.public void afterRemove(java.lang.Object instance)
@PostRemove annotated callbacks in the instance.
instance - The instance to invoke.public void afterUpdate(java.lang.Object instance)
@PostUpdate annotated callbacks in the instance.
instance - The instance to invoke.public void beforeDestroy(java.lang.Object instance)
@PreDestroy annotated callbacks in the instance.
instance - The instance to invoke.public void beforePassivate(java.lang.Object instance)
@PrePassivate annotated callbacks in the
instance.
instance - The instance to invoke.public void beforePersist(java.lang.Object instance)
@PrePersist annotated callbacks in the instance.
instance - The instance to invoke.public void beforeRemove(java.lang.Object instance)
@PreRemove annotated callbacks in the instance.
instance - The instance to invoke.public void beforeUpdate(java.lang.Object instance)
@PreUpdate annotated callbacks in the instance.
instance - The instance to invoke.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The instance to compare with.public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||