geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r356573 - /geronimo/branches/1.0/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
Date Tue, 13 Dec 2005 19:11:40 GMT
Author: ammulder
Date: Tue Dec 13 11:11:38 2005
New Revision: 356573

URL: http://svn.apache.org/viewcvs?rev=356573&view=rev
Log:
Expose network port in startup list (GERONIMO-1349)

Modified:
    geronimo/branches/1.0/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java

Modified: geronimo/branches/1.0/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java?rev=356573&r1=356572&r2=356573&view=diff
==============================================================================
--- geronimo/branches/1.0/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
(original)
+++ geronimo/branches/1.0/modules/directory/src/java/org/apache/geronimo/directory/DirectoryGBean.java
Tue Dec 13 11:11:38 2005
@@ -19,6 +19,7 @@
 
 import java.io.File;
 import java.net.InetAddress;
+import java.net.InetSocketAddress;
 import java.util.Properties;
 import javax.naming.Context;
 import javax.naming.directory.InitialDirContext;
@@ -157,6 +158,10 @@
         //Insert failure code here
     }
 
+    public InetSocketAddress getListenAddress() {
+        return new InetSocketAddress(getHost(), getPort());
+    }
+
     private void setEnvironment(Properties env){
 
         if (providerURL != null){
@@ -233,7 +238,7 @@
     public static final GBeanInfo GBEAN_INFO;
 
     static {
-        GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic("DirectoryGBean", DirectoryGBean.class);
+        GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic("Apache Directory LDAP",
DirectoryGBean.class);
 
         infoFactory.addAttribute("classLoader", ClassLoader.class, false);
         
@@ -243,6 +248,7 @@
         infoFactory.addAttribute("securityCredentials", String.class, true, true);
         infoFactory.addAttribute("port", int.class, true, true);
         infoFactory.addAttribute("host", String.class, true, true);
+        infoFactory.addAttribute("listenAddress", InetSocketAddress.class, false, false);
         infoFactory.addAttribute("enableNetworking", boolean.class, true, true);
         
         infoFactory.addAttribute("workingDir", String.class, true);



Mime
View raw message