directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 1463 - incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema
Date Sat, 20 Dec 2003 20:15:39 GMT
Author: akarasulu
Date: Sat Dec 20 12:15:38 2003
New Revision: 1463

Modified:
   incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistry.java
   incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitor.java
   incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitorAdapter.java
Log:
filling in interfaces

Modified: incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistry.java
==============================================================================
--- incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistry.java
(original)
+++ incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistry.java
Sat Dec 20 12:15:38 2003
@@ -49,11 +49,12 @@
 */
 package org.apache.eve.schema ;
 
+
 import javax.naming.NamingException ;
 
 
 /**
- * Manages the lookup of Syntaxes within the system by OID.
+ * Manages the lookup and registration of Syntaxes within the system by OID.
  *
  * @author <a href="mailto:akarasulu@apache.org">Alex Karasulu</a>
  * @author $Author$
@@ -73,6 +74,15 @@
      * does not exist.
      */
     Syntax lookup( String a_oid ) throws NamingException ;
+    
+    /**
+     * Registers a Syntax with this registry.  
+     * 
+     * @param a_syntax the Syntax to register
+     * @throws NamingException if the syntax is already registered or the 
+     * registration operation is not supported
+     */
+    void register( Syntax a_syntax ) throws NamingException ;
 
     /**
      * Checks to see if a Syntax exists.  Backing store failures simply return

Modified: incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitor.java
==============================================================================
--- incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitor.java
(original)
+++ incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitor.java
Sat Dec 20 12:15:38 2003
@@ -49,6 +49,8 @@
 */
 package org.apache.eve.schema ;
 
+import javax.naming.NamingException;
+
 /**
  * Monitor interface for a SyntaxRegistry.
  *
@@ -58,5 +60,33 @@
  */
 public interface SyntaxRegistryMonitor
 {
+    /**
+     * Monitors when a Syntax is registered successfully.
+     * 
+     * @param a_syntax the Syntax registered
+     */
+    void registered( Syntax a_syntax ) ;
+
+    /**
+     * Monitors when a Syntax is successfully looked up.
+     * 
+     * @param a_syntax the Syntax looked up
+     */
+    void lookedUp( Syntax a_syntax ) ;
 
+    /**
+     * Monitors when a lookup attempt fails.
+     * 
+     * @param a_oid the OID for the Syntax to lookup
+     * @param a_fault the exception to be thrown for the fault
+     */
+    void lookupFailed( String a_oid, NamingException a_fault ) ;
+    
+    /**
+     * Monitors when a registration attempt fails.
+     * 
+     * @param a_syntax the Syntax which failed registration
+     * @param a_fault the exception to be thrown for the fault
+     */
+    void registerFailed( Syntax a_syntax, NamingException a_fault ) ; 
 }

Modified: incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitorAdapter.java
==============================================================================
--- incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitorAdapter.java
(original)
+++ incubator/directory/ldap/trunk/eve/backend/schema/syntax/api/src/java/org/apache/eve/schema/SyntaxRegistryMonitorAdapter.java
Sat Dec 20 12:15:38 2003
@@ -49,6 +49,8 @@
 */
 package org.apache.eve.schema ;
 
+import javax.naming.NamingException;
+
 
 /**
  * An adapter for the SyntaxRegistry's monitor.
@@ -59,5 +61,38 @@
  */
 public class SyntaxRegistryMonitorAdapter implements SyntaxRegistryMonitor
 {
+    /* (non-Javadoc)
+     * @see org.apache.eve.schema.SyntaxRegistryMonitor#registered(
+     * org.apache.eve.schema.Syntax)
+     */
+    public void registered( Syntax a_syntax)
+    {
+    }
+
+    
+    /* (non-Javadoc)
+     * @see org.apache.eve.schema.SyntaxRegistryMonitor#lookedUp(
+     * org.apache.eve.schema.Syntax)
+     */
+    public void lookedUp( Syntax a_syntax )
+    {
+    }
+
+    
+    /* (non-Javadoc)
+     * @see org.apache.eve.schema.SyntaxRegistryMonitor#lookupFailed(
+     * java.lang.String, javax.naming.NamingException)
+     */
+    public void lookupFailed( String a_oid, NamingException a_fault )
+    {
+    }
 
+    
+    /* (non-Javadoc)
+     * @see org.apache.eve.schema.SyntaxRegistryMonitor#registerFailed(
+     * org.apache.eve.schema.Syntax, javax.naming.NamingException)
+     */
+    public void registerFailed( Syntax a_syntax, NamingException a_fault )
+    {
+    }
 }

Mime
View raw message