/** * Set the naming resources for this web application. * * @param namingResources The new naming resources */ @Override public void setNamingResources(NamingResources namingResources) { // Process the property setting change NamingResources oldNamingResources = this.namingResources; this.namingResources = namingResources; namingResources.setContainer(this); support.firePropertyChange("namingResources", oldNamingResources, this.namingResources); // If set from server.xml, getObjectKeyPropertiesNameOnly() will // trigger an NPE. Initial registration takes place on INIT. if (getState() != LifecycleState.NEW) { unregister(onameNamingResources); onameNamingResources = register(namingResources, "type=NamingResources," + getObjectKeyPropertiesNameOnly()); } }
/** * Set the naming resources for this web application. * * @param namingResources The new naming resources */ @Override public void setNamingResources(NamingResources namingResources) { // Process the property setting change NamingResources oldNamingResources = this.namingResources; this.namingResources = namingResources; namingResources.setContainer(this); support.firePropertyChange("namingResources", oldNamingResources, this.namingResources); // If set from server.xml, getObjectKeyPropertiesNameOnly() will // trigger an NPE. Initial registration takes place on INIT. if (getState() != LifecycleState.NEW) { unregister(onameNamingResources); onameNamingResources = register(namingResources, "type=NamingResources," + getObjectKeyPropertiesNameOnly()); } }
/** * Set the naming resources for this web application. * * @param namingResources The new naming resources */ @Override public void setNamingResources(NamingResources namingResources) { // Process the property setting change NamingResources oldNamingResources = this.namingResources; this.namingResources = namingResources; namingResources.setContainer(this); support.firePropertyChange("namingResources", oldNamingResources, this.namingResources); // If set from server.xml, getObjectKeyPropertiesNameOnly() will // trigger an NPE. Initial registration takes place on INIT. if (getState() != LifecycleState.NEW) { unregister(onameNamingResources); onameNamingResources = register(namingResources, "type=NamingResources," + getObjectKeyPropertiesNameOnly()); } }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { onameNamingResources = register(namingResources, "type=NamingResources," + getObjectNameKeyProperties()); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { onameNamingResources = register(namingResources, "type=NamingResources," + getObjectNameKeyProperties()); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); if (processTlds) { this.addLifecycleListener(new TldConfig()); } // Register the naming resources if (namingResources != null) { onameNamingResources = register(namingResources, "type=NamingResources," + getObjectNameKeyProperties()); } // Send j2ee.object.created notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.object.created", this.getObjectName(), sequenceNumber.getAndIncrement()); broadcaster.sendNotification(notification); } }