Methods Summary |
---|
public void | addCallbackDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor.CallbackType type, LifecycleCallbackDescriptor llcDesc)
// callbacks
Set<LifecycleCallbackDescriptor> llcDescs =
getCallbackDescriptors(type);
boolean found = false;
for (LifecycleCallbackDescriptor llcD : llcDescs) {
if ((llcDesc.getLifecycleCallbackClass() != null) &&
llcDesc.getLifecycleCallbackClass().equals(
llcD.getLifecycleCallbackClass())) {
found = true;
}
}
if (!found) {
llcDescs.add(llcDesc);
}
|
public void | addCallbackDescriptors(com.sun.enterprise.deployment.LifecycleCallbackDescriptor.CallbackType type, java.util.Set lccSet)
for (LifecycleCallbackDescriptor lcc : lccSet) {
addCallbackDescriptor(type, lcc);
}
|
public void | addEjbReferenceDescriptor(com.sun.enterprise.deployment.types.EjbReference ejbReference)
this.getEjbReferenceDescriptors().add(ejbReference);
ejbReference.setReferringBundleDescriptor(getEjbBundleDescriptor());
|
public void | addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
if( getEjbBundleDescriptor() != null ) {
reference.setReferringBundleDescriptor
(getEjbBundleDescriptor());
}
this.getEntityManagerFactoryReferenceDescriptors().add(reference);
|
public void | addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
if( getEjbBundleDescriptor() != null ) {
reference.setReferringBundleDescriptor
(getEjbBundleDescriptor());
}
this.getEntityManagerReferenceDescriptors().add(reference);
|
public void | addEnvironmentProperty(EnvironmentProperty environmentProperty)
this.getEnvironmentProperties().add(environmentProperty);
|
public void | addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestinationReference)
this.getJmsDestinationReferenceDescriptors().add(jmsDestinationReference);
|
public void | addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestReference)
if( getEjbBundleDescriptor() != null ) {
msgDestReference.setReferringBundleDescriptor
(getEjbBundleDescriptor());
}
this.getMessageDestinationReferenceDescriptors().add(msgDestReference);
|
public void | addPostConstructDescriptor(LifecycleCallbackDescriptor lcDesc)
addCallbackDescriptor(CallbackType.POST_CONSTRUCT, lcDesc);
|
public void | addPreDestroyDescriptor(LifecycleCallbackDescriptor lcDesc)
addCallbackDescriptor(CallbackType.PRE_DESTROY, lcDesc);
|
public void | addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
this.getResourceReferenceDescriptors().add(resourceReference);
|
public void | addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
serviceReference.setBundleDescriptor(getEjbBundleDescriptor());
this.getServiceReferenceDescriptors().add(serviceReference);
|
public java.util.Set | getCallbackDescriptors(com.sun.enterprise.deployment.LifecycleCallbackDescriptor.CallbackType type)
Set<LifecycleCallbackDescriptor> lccDescs =
callbackDescriptors.get(type);
if (lccDescs == null) {
lccDescs = new HashSet<LifecycleCallbackDescriptor>();
callbackDescriptors.put(type, lccDescs);
}
return lccDescs;
|
public EjbBundleDescriptor | getEjbBundleDescriptor()
return this.bundleDescriptor;
|
public com.sun.enterprise.deployment.types.EjbReference | getEjbReference(java.lang.String name)
for (Iterator itr = this.getEjbReferenceDescriptors().iterator(); itr.hasNext();) {
EjbReference er = (EjbReference) itr.next();
if (er.getName().equals(name)) {
return er;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnoejbrefbyname",
"This class has no ejb reference by the name of {0}",
new Object[] {name}));
|
public java.util.Set | getEjbReferenceDescriptors()
if (this.ejbReferences == null) {
this.ejbReferences = new OrderedSet();
}
return this.ejbReferences = new OrderedSet(this.ejbReferences);
|
public EntityManagerFactoryReferenceDescriptor | getEntityManagerFactoryReferenceByName(java.lang.String name)
for (EntityManagerFactoryReferenceDescriptor next :
getEntityManagerFactoryReferenceDescriptors()) {
if (next.getName().equals(name)) {
return next;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnoentitymgrfactoryrefbyname",
"This class has no entity manager factory reference by the name of {0}",
new Object[] {name}));
|
public java.util.Set | getEntityManagerFactoryReferenceDescriptors()
if( this.entityManagerFactoryReferences == null ) {
this.entityManagerFactoryReferences =
new HashSet<EntityManagerFactoryReferenceDescriptor>();
}
return entityManagerFactoryReferences;
|
public EntityManagerReferenceDescriptor | getEntityManagerReferenceByName(java.lang.String name)
for (EntityManagerReferenceDescriptor next :
getEntityManagerReferenceDescriptors()) {
if (next.getName().equals(name)) {
return next;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnoentitymgrrefbyname",
"This class has no entity manager reference by the name of {0}",
new Object[] {name}));
|
public java.util.Set | getEntityManagerReferenceDescriptors()
if( this.entityManagerReferences == null ) {
this.entityManagerReferences =
new HashSet<EntityManagerReferenceDescriptor>();
}
return entityManagerReferences;
|
public java.util.Set | getEnvironmentProperties()
if (this.environmentProperties == null) {
this.environmentProperties = new OrderedSet();
}
return this.environmentProperties = new OrderedSet(this.environmentProperties);
|
public EnvironmentProperty | getEnvironmentPropertyByName(java.lang.String name)
for (Iterator itr = this.getEnvironmentProperties().iterator(); itr.hasNext();) {
EnvironmentProperty ev = (EnvironmentProperty) itr.next();
if (ev.getName().equals(name)) {
return ev;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnoenvpropertybyname",
"This class has no environment property by the name of {0}",
new Object[] {name}));
|
public java.util.List | getInjectableResourcesByClass(java.lang.String className)
throw new UnsupportedOperationException();
|
public InjectionInfo | getInjectionInfoByClass(java.lang.String className)
throw new UnsupportedOperationException();
|
public JmsDestinationReferenceDescriptor | getJmsDestinationReferenceByName(java.lang.String name)
for (Iterator itr = this.getJmsDestinationReferenceDescriptors().iterator(); itr.hasNext();) {
JmsDestinationReferenceDescriptor jdr = (JmsDestinationReferenceDescriptor) itr.next();
if (jdr.getName().equals(name)) {
return jdr;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnojmsdestrefbyname",
"This class has no resource environment reference by the name of {0}",
new Object[] {name}));
|
public java.util.Set | getJmsDestinationReferenceDescriptors()
if (this.jmsDestReferences == null) {
this.jmsDestReferences = new OrderedSet();
}
return this.jmsDestReferences = new OrderedSet(this.jmsDestReferences);
|
public MessageDestinationReferenceDescriptor | getMessageDestinationReferenceByName(java.lang.String name)
for (Iterator itr =
this.getMessageDestinationReferenceDescriptors().iterator();
itr.hasNext();) {
MessageDestinationReferenceDescriptor mdr =
(MessageDestinationReferenceDescriptor) itr.next();
if (mdr.getName().equals(name)) {
return mdr;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnomsgdestrefbyname",
"This class has no message destination reference by the name of {0}",
new Object[] {name}));
|
public java.util.Set | getMessageDestinationReferenceDescriptors()
if( this.messageDestReferences == null ) {
this.messageDestReferences = new OrderedSet();
}
return this.messageDestReferences =
new OrderedSet(this.messageDestReferences);
|
public LifecycleCallbackDescriptor | getPostConstructDescriptorByClass(java.lang.String className)
throw new UnsupportedOperationException();
|
public java.util.Set | getPostConstructDescriptors()
return getCallbackDescriptors(CallbackType.POST_CONSTRUCT);
|
public LifecycleCallbackDescriptor | getPreDestroyDescriptorByClass(java.lang.String className)
throw new UnsupportedOperationException();
|
public java.util.Set | getPreDestroyDescriptors()
return getCallbackDescriptors(CallbackType.PRE_DESTROY);
|
public ResourceReferenceDescriptor | getResourceReferenceByName(java.lang.String name)
for (Iterator itr = this.getResourceReferenceDescriptors().iterator(); itr.hasNext();) {
ResourceReferenceDescriptor next = (ResourceReferenceDescriptor) itr.next();
if (next.getName().equals(name)) {
return next;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnoresourcerefbyname",
"This class has no resource reference by the name of {0}",
new Object[] {name}));
|
public java.util.Set | getResourceReferenceDescriptors()
if (this.resourceReferences == null) {
this.resourceReferences = new OrderedSet();
}
return this.resourceReferences = new OrderedSet(this.resourceReferences);
|
public ServiceReferenceDescriptor | getServiceReferenceByName(java.lang.String name)
for (Iterator itr = this.getServiceReferenceDescriptors().iterator();
itr.hasNext();) {
ServiceReferenceDescriptor srd = (ServiceReferenceDescriptor)
itr.next();
if (srd.getName().equals(name)) {
return srd;
}
}
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployment.exceptionhasnoservicerefbyname",
"This class has no service reference by the name of {0}",
new Object[] {name}));
|
public java.util.Set | getServiceReferenceDescriptors()
if( this.serviceReferences == null ) {
this.serviceReferences = new OrderedSet();
}
return this.serviceReferences = new OrderedSet(this.serviceReferences);
|
public boolean | hasCallbackDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor.CallbackType type)
return (getCallbackDescriptors(type).size() > 0);
|
public void | removeEjbReferenceDescriptor(com.sun.enterprise.deployment.types.EjbReference ejbReference)
this.getEjbReferenceDescriptors().remove(ejbReference);
ejbReference.setReferringBundleDescriptor(null);
|
public void | removeEnvironmentProperty(EnvironmentProperty environmentProperty)
this.getEnvironmentProperties().remove(environmentProperty);
|
public void | removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestinationReference)
this.getJmsDestinationReferenceDescriptors().remove(jmsDestinationReference);
|
public void | removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
this.getMessageDestinationReferenceDescriptors().remove(msgDestRef);
|
public void | removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
this.getResourceReferenceDescriptors().remove(resourceReference);
|
public void | removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceReference)
this.getServiceReferenceDescriptors().remove(serviceReference);
|
public void | setEjbBundleDescriptor(EjbBundleDescriptor bundleDescriptor)
this.bundleDescriptor = bundleDescriptor;
|