argos.naming
Class NamingService

java.lang.Object
  extended by argos.naming.NamingService

public class NamingService
extends Object

Created on 04.jul.2006

Author:
Dan Peder Eriksen

Method Summary
 boolean addComponent(ComponentMetaInfo meta, Object mbean)
           
 boolean addNotificationProxy(NotificationProxy proxy)
           
 void addService(ServiceMetaInfo service)
           
 List<ComponentMetaInfo> getAllComponentMetaData()
           
 List<ServiceMetaInfo> getAllServices()
           
 Object getBangBang(String name)
           
 Object getComponentByMeta(ComponentMetaInfo meta)
           
 Object getComponentByName(String name)
           
 ComponentMetaInfo getComponentMetaByComponent(Object component)
           
 ComponentMetaInfo getComponentMetaByMBeanName(String mbean)
           
 ComponentMetaInfo getComponentMetaByName(String name)
           
 ComponentMetaInfo getComponentMetaByName(String name, boolean verbose)
           
 List<ComponentMetaInfo> getComponentMetaDatas()
           
static NamingService getInstance()
           
 List<File> getLoadedFiles()
           
 NotificationProxy getNotificationProxy(Object object)
           
 ServiceMetaInfo getServiceByFile(File file)
           
 ServiceMetaInfo getServiceByName(String name)
           
 ServiceMetaInfo getServiceByName(String name, boolean verbose)
           
 boolean isComponentLoaded(ComponentMetaInfo meta)
           
 boolean isComponentLoaded(String name)
           
 boolean isFileLoaded(File file)
           
 boolean isNewer(File jarFile)
          Checks to see if the given file is newer than the one that is loaded.
 void removeComponent(ComponentMetaInfo meta)
           
 void removeService(ServiceMetaInfo service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NamingService getInstance()

addComponent

public boolean addComponent(ComponentMetaInfo meta,
                            Object mbean)

addNotificationProxy

public boolean addNotificationProxy(NotificationProxy proxy)

addService

public void addService(ServiceMetaInfo service)

getAllComponentMetaData

public List<ComponentMetaInfo> getAllComponentMetaData()

getBangBang

public Object getBangBang(String name)

getComponentByMeta

public Object getComponentByMeta(ComponentMetaInfo meta)

getComponentByName

public Object getComponentByName(String name)

getComponentMetaByName

public ComponentMetaInfo getComponentMetaByName(String name)

getComponentMetaByName

public ComponentMetaInfo getComponentMetaByName(String name,
                                                boolean verbose)

getComponentMetaByComponent

public ComponentMetaInfo getComponentMetaByComponent(Object component)

getComponentMetaByMBeanName

public ComponentMetaInfo getComponentMetaByMBeanName(String mbean)

getComponentMetaDatas

public List<ComponentMetaInfo> getComponentMetaDatas()

getLoadedFiles

public List<File> getLoadedFiles()

getNotificationProxy

public NotificationProxy getNotificationProxy(Object object)

getServiceByName

public ServiceMetaInfo getServiceByName(String name,
                                        boolean verbose)

getServiceByName

public ServiceMetaInfo getServiceByName(String name)

getServiceByFile

public ServiceMetaInfo getServiceByFile(File file)

getAllServices

public List<ServiceMetaInfo> getAllServices()

isComponentLoaded

public boolean isComponentLoaded(ComponentMetaInfo meta)

isComponentLoaded

public boolean isComponentLoaded(String name)

isFileLoaded

public boolean isFileLoaded(File file)

removeComponent

public void removeComponent(ComponentMetaInfo meta)

removeService

public void removeService(ServiceMetaInfo service)

isNewer

public boolean isNewer(File jarFile)
Checks to see if the given file is newer than the one that is loaded. Its assumed that the file is already loaded.

Parameters:
jarFile - The jar file checking is done against.
Returns:
True if the given jar file is never, false otherwise.


Copyright © 2004-2007 University of Troms?. All Rights Reserved.